Skip to content

Commit

Permalink
[Cypress test fix] Wait verify URL changes to saved map before open m…
Browse files Browse the repository at this point in the history
…aps listing

Signed-off-by: Junqiu Lei <[email protected]>
  • Loading branch information
junqiu-lei committed Jan 19, 2023
1 parent b03ac14 commit 25e907d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cypress/integration/documentsLayer.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ describe('Documents layer', () => {
cy.wait(5000).get('[data-test-subj="top-nav"]').click();
cy.wait(5000).get('[data-test-subj="savedObjectTitle"]').type(uniqueName);
cy.wait(5000).get('[data-test-subj="confirmSaveSavedObjectButton"]').click();
const uuidRegex = /[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}/i;
cy.wait(5000).url().should('contain', uuidRegex);
});

it('Open saved map with documents layer', () => {
Expand Down

0 comments on commit 25e907d

Please sign in to comment.