Skip to content

Commit

Permalink
Merge pull request #3248 from bcgov/NDT-247-Test-banner-says-Connecte…
Browse files Browse the repository at this point in the history
…d-instead-of-Connecting

Ndt 247 test banner says connected instead of connecting
  • Loading branch information
rafasdc authored May 8, 2024
2 parents 4e0f0eb + 4ea7fbb commit 4d12ff4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/components/HeaderBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const HeaderBanner: React.FC<Props> = ({
{environmentIndicator && !isProd && (
<StyledBaseHeaderBanner header="sub">
<StyledDiv>
Connected Communities BC portal{' '}
Connecting Communities BC portal{' '}
{isTest ? ' Test ' : ' Development '} environment.
</StyledDiv>
</StyledBaseHeaderBanner>
Expand Down
6 changes: 3 additions & 3 deletions app/tests/components/HeaderBanner.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe('The Header Banner component', () => {
it('should render the correct banner when environment indicator on', () => {
renderStaticLayout(true);
const alert = screen.getByText(
/Connected Communities BC portal Development environment/
/Connecting Communities BC portal Development environment/
);

expect(alert).toBeInTheDocument();
Expand All @@ -39,7 +39,7 @@ describe('The Header Banner component', () => {
renderStaticLayout(false);
expect(
screen.queryByText(
/Connected Communities BC portal Development environment/
/Connecting Communities BC portal Development environment/
)
).not.toBeInTheDocument();
});
Expand All @@ -62,7 +62,7 @@ describe('The Header Banner component', () => {
mockOpenshiftNamespace.mockImplementationOnce(() => 'environment-prod');
renderStaticLayout(true);
expect(
screen.queryByText(/Connected Communities BC portal/)
screen.queryByText(/Connecting Communities BC portal/)
).not.toBeInTheDocument();
});

Expand Down

0 comments on commit 4d12ff4

Please sign in to comment.