-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e35e849
commit 848699a
Showing
5 changed files
with
42 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -249,7 +249,7 @@ describe('Static Banner', () => { | |
it('should NOT show the banner if the env variable is false', () => { | ||
process.env.SHOW_BANNER = 'false'; | ||
|
||
const { getByTestId } = render( | ||
const { queryByTestId } = render( | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
caleballdrin
Author
Contributor
|
||
<ThemeProvider theme={theme}> | ||
<SnackbarProvider> | ||
<MockedProvider mocks={GetThisWeekDefaultMocks()} addTypename={false}> | ||
|
@@ -259,6 +259,6 @@ describe('Static Banner', () => { | |
</ThemeProvider>, | ||
); | ||
|
||
expect(getByTestId('staticBanner')).not.toBeInTheDocument(); | ||
expect(queryByTestId('staticBanner')).not.toBeInTheDocument(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { render } from '@testing-library/react'; | ||
import { StaticBanner } from './StaticBanner'; | ||
|
||
test('static banner displays', () => { | ||
const { queryByTestId } = render(<StaticBanner />); | ||
|
||
expect(queryByTestId('nonCruOrgReminder')).toBeInTheDocument(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/components/Shared/staticBanner/getOrganizationType.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
query GetUsersOrganizations { | ||
userOrganizationAccounts { | ||
organization { | ||
apiClass | ||
id | ||
name | ||
oauth | ||
organizationType | ||
} | ||
latestDonationDate | ||
lastDownloadedAt | ||
username | ||
} | ||
} |
It seems these changes are unrelated to the commit message. Probably should have been in a separate commit (and probably squashed later).