From 1ce8a3754b7f85604c35b32a2346b1126b5cc4a9 Mon Sep 17 00:00:00 2001 From: Anirudh Pillai Date: Wed, 4 Sep 2024 20:08:42 +0100 Subject: [PATCH] waiting on cypress --- cypress/e2e/dashboard.cy.ts | 2 +- cypress/e2e/insights-duplication.cy.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cypress/e2e/dashboard.cy.ts b/cypress/e2e/dashboard.cy.ts index cc12b00be2a94..8c75ed1980f83 100644 --- a/cypress/e2e/dashboard.cy.ts +++ b/cypress/e2e/dashboard.cy.ts @@ -413,7 +413,7 @@ describe('Dashboard', () => { cy.get('[data-attr="date-filter"]').click() cy.contains('span', 'Last 14 days').click() - cy.wait(1000) + cy.wait(2000) // insight meta should be updated to show new date range // default date range is last 7 days diff --git a/cypress/e2e/insights-duplication.cy.ts b/cypress/e2e/insights-duplication.cy.ts index 9c0ae8bd61534..46746ca5f2d90 100644 --- a/cypress/e2e/insights-duplication.cy.ts +++ b/cypress/e2e/insights-duplication.cy.ts @@ -36,6 +36,7 @@ describe('Insights', () => { }) it('can duplicate from insight view', () => { + cy.wait(2000) cy.get('.TopBar3000 [data-attr="more-button"]').click() cy.get('[data-attr="duplicate-insight-from-insight-view"]').click() cy.get('[data-attr="top-bar-name"] .EditableField__display').should('contain', `${insightName} (copy)`)