From 7b036805e3e81b3db0fc55d25d9d899e89ec3359 Mon Sep 17 00:00:00 2001 From: Cesar Varela Date: Tue, 14 Nov 2023 15:34:37 -0300 Subject: [PATCH] Reduce flake (#2413) --- site/gatsby-site/cypress/e2e/integration/discover.cy.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/site/gatsby-site/cypress/e2e/integration/discover.cy.js b/site/gatsby-site/cypress/e2e/integration/discover.cy.js index d5faa2adbf..5c6591a53d 100644 --- a/site/gatsby-site/cypress/e2e/integration/discover.cy.js +++ b/site/gatsby-site/cypress/e2e/integration/discover.cy.js @@ -35,16 +35,14 @@ describe('The Discover app', () => { () => { cy.visit(url); - cy.location('search', { timeout: 8000 }).should('contain', 'is_incident_report=true'); - cy.waitForStableDOM(); + cy.location('search', { timeout: 8000 }).should('contain', 'is_incident_report=true'); + cy.contains('[data-cy="display-options"]', 'Incident Reports') .should('exist') .and('be.visible'); - cy.waitForStableDOM(); - cy.get('div[data-cy="hits-container"]').children().should('have.length.at.least', 28); } );