Skip to content

Commit

Permalink
[Vis builder] get correct element (#869)
Browse files Browse the repository at this point in the history
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 <[email protected]>
(cherry picked from commit 56a74e8)
  • Loading branch information
kavilla authored and github-actions[bot] committed Sep 18, 2023
1 parent 35b62b4 commit 746b66e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
Expand Down

0 comments on commit 746b66e

Please sign in to comment.