Skip to content

Commit

Permalink
[Vis builder] get correct element (#869) (#871)
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)

Co-authored-by: Kawika Avilla <[email protected]>
  • Loading branch information
opensearch-trigger-bot[bot] and kavilla authored Oct 6, 2023
1 parent d52ad2f commit f47ffa7
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 f47ffa7

Please sign in to comment.