From 497d3f39107b6fe8952a35e1ad72af63612954ea Mon Sep 17 00:00:00 2001 From: Evan Rusackas Date: Sun, 27 Sep 2020 20:08:21 -0700 Subject: [PATCH] fix: Adding timeout to flaky cypress test, to wait for animation to complete (#11074) * adding timeout for animation * 1s timeout --- .../cypress/integration/dashboard/edit_mode.test.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/superset-frontend/cypress-base/cypress/integration/dashboard/edit_mode.test.js b/superset-frontend/cypress-base/cypress/integration/dashboard/edit_mode.test.js index 464b377e8..47fbabcb9 100644 --- a/superset-frontend/cypress-base/cypress/integration/dashboard/edit_mode.test.js +++ b/superset-frontend/cypress-base/cypress/integration/dashboard/edit_mode.test.js @@ -40,6 +40,9 @@ describe('Dashboard edit mode', () => { cy.get('.tabs-components .nav-tabs li a').contains('Charts').click(); + // wait for tab-switching animation to complete + cy.wait(1000); + // find box plot is available from list cy.get('.tabs-components') .find('.chart-card-container')