Skip to content

Commit

Permalink
[Vis builder] get correct element
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]>
  • Loading branch information
kavilla committed Sep 16, 2023
1 parent 503ebf7 commit 55b1809
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 55b1809

Please sign in to comment.