From 4acfbfdf478ad8c7b672270bf76b1d936c119628 Mon Sep 17 00:00:00 2001 From: Kawika Avilla Date: Mon, 18 Sep 2023 08:17:46 -0700 Subject: [PATCH] [Vis builder] get correct element (#869) Finds the correct element when loading instead of a regular visualization loader. Error easier to catch since wait for loader is less flakey. Issue: opensearch-project/OpenSearch-Dashboards#5043 Signed-off-by: Kawika Avilla (cherry picked from commit 56a74e8d88df9054e83676c171e5a627235f1b9e) --- .../opensearch-dashboards/apps/vis_builder/dashboard.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 92aee997a..234d4138a 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 @@ -138,7 +138,7 @@ if (Cypress.env('VISBUILDER_ENABLED')) { // Save and return cy.getElementByTestId('visBuilderSaveAndReturnButton').click(); - cy.getElementByTestId('visualizationLoader').should( + cy.getElementByTestId('visBuilderLoader').should( 'contain.text', newLabel );