From e0cd5a934cfe034ef7f9db41fbcf4f8cd1289739 Mon Sep 17 00:00:00 2001 From: "Qingyang(Abby) Hu" Date: Wed, 5 Jul 2023 13:47:35 -0700 Subject: [PATCH] Need to let dashboard finish loading Signed-off-by: Qingyang(Abby) Hu --- .../opensearch-dashboards/apps/vis_builder/dashboard.spec.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_builder/dashboard.spec.js b/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_builder/dashboard.spec.js index e342dcd22..72bd3a35a 100644 --- a/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_builder/dashboard.spec.js +++ b/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_builder/dashboard.spec.js @@ -95,6 +95,8 @@ if (Cypress.env('VISBUILDER_ENABLED')) { cy.getElementByTestId('savedObjectTitle').type(visTitle); cy.getElementByTestId('confirmSaveSavedObjectButton').click(); + // Wait for page to load + cy.waitForLoader(); // Check to see if the new vis is present in the dashboard cy.getElementByTestId( `embeddablePanelHeading-${toTestId(visTitle, '')}`