Skip to content

Commit

Permalink
Reduce Discover tests flake (responsible-ai-collaborative#2400)
Browse files Browse the repository at this point in the history
* Reduce test flake

* Reduce flake
  • Loading branch information
cesarvarela authored Nov 9, 2023
1 parent 6cc0194 commit 30a839b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions site/gatsby-site/cypress/e2e/integration/discover.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ describe('The Discover app', () => {

cy.get('[data-cy="tags-item"]:contains("response")', { timeout: 8000 }).first().click();

cy.waitForStableDOM();

cy.url().should('include', 'tags=response');

cy.waitForStableDOM();
Expand Down Expand Up @@ -294,6 +296,8 @@ describe('The Discover app', () => {

cy.contains('li', /^Issue Reports$/).click();

cy.waitForStableDOM();

cy.location('search', { timeout: 8000 }).should('contain', 'is_incident_report=false');

cy.waitForStableDOM();
Expand Down Expand Up @@ -535,6 +539,8 @@ describe('The Discover app', () => {
.first()
.click();

cy.waitForStableDOM();

cy.url().should('include', 'source_domain=theguardian.com');

cy.waitForStableDOM();
Expand Down

0 comments on commit 30a839b

Please sign in to comment.