Skip to content

Commit

Permalink
Improve flaky cypress tests
Browse files Browse the repository at this point in the history
  • Loading branch information
louise-davies committed Dec 15, 2023
1 parent be85759 commit 9b114c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cypress/e2e/filtering.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ describe('Filtering Component', () => {
beforeEach(() => {
cy.visit('/');

cy.findByRole('progressbar').should('be.visible');
cy.findByRole('tabpanel', { name: 'Data' }).should('be.visible');
cy.findByRole('progressbar').should('not.exist');
});

Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/search.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ describe('Search', () => {

cy.visit('/').wait(['@getSettings']);

cy.findByRole('progressbar').should('be.visible');
cy.findByRole('tabpanel', { name: 'Data' }).should('be.visible');
cy.findByRole('progressbar').should('not.exist');
});

Expand Down

0 comments on commit 9b114c7

Please sign in to comment.