Skip to content

Commit

Permalink
fix: e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanoshadjipetrou committed Sep 2, 2020
1 parent 4f198ef commit 44d1fef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions cypress/integration/qbOutputFormat.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const outputFormatLabels = [
describe('Query Builder - output format', function () {
it('should load the page', function () {
cy.visit('/querybuilder/output-format');
cy.get('[data-cy=covid-banner-close-btn]').click();
cy.get(':nth-child(3) > #navlink').click();
});

Expand Down
7 changes: 6 additions & 1 deletion src/app/components/feedback/Banners/CovidBanner/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,12 @@ export const CovidBanner = (props: CookieNoticeParams) => {
</a>
</p>
</div>
<div css={NoticeButtonStyle} role="button" onClick={handleClose} />
<div
role="button"
onClick={handleClose}
css={NoticeButtonStyle}
data-cy="covid-banner-close-btn"
/>
</div>
</div>
)
Expand Down

0 comments on commit 44d1fef

Please sign in to comment.