From 3528b663bb5a6ffb528db76c18d0c80651fe4a95 Mon Sep 17 00:00:00 2001 From: Paul D'Ambra Date: Thu, 12 Oct 2023 21:40:05 +0100 Subject: [PATCH] chore: deflake a test (#17956) --- cypress/e2e/insights-unsaved-confirmation.cy.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cypress/e2e/insights-unsaved-confirmation.cy.ts b/cypress/e2e/insights-unsaved-confirmation.cy.ts index 023b2a7ef7f74..6257fc264e20f 100644 --- a/cypress/e2e/insights-unsaved-confirmation.cy.ts +++ b/cypress/e2e/insights-unsaved-confirmation.cy.ts @@ -1,4 +1,3 @@ -import { urls } from 'scenes/urls' import { randomString } from '../support/random' import { decideResponse } from '../fixtures/api/decide' import { insight } from '../productAnalytics' @@ -20,7 +19,10 @@ describe('Insights', () => { return true }) - cy.visit(urls.insightNew()) + cy.visit('/insights') + cy.wait('@getInsights').then(() => { + cy.get('.saved-insights tr').should('exist') + }) }) describe('unsaved insights confirmation', () => {