From f47ffa7f0fb514d4dad5845b0dad0e16bbb3c19b Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Fri, 6 Oct 2023 12:24:40 -0700 Subject: [PATCH] [Vis builder] get correct element (#869) (#871) 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) Co-authored-by: Kawika Avilla --- .../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 );