Skip to content

Commit

Permalink
[Cypress test fix] Wait map saved before open maps listing
Browse files Browse the repository at this point in the history
Signed-off-by: Junqiu Lei <[email protected]>
  • Loading branch information
junqiu-lei committed Jan 20, 2023
1 parent d4a051c commit 3239ab8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/cypress-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ jobs:
# Window is slow so wait longer
- name: Sleep until OSD server starts - windows
if: ${{ matrix.os == 'windows-latest' }}
run: Start-Sleep -s 400
run: Start-Sleep -s 600
shell: powershell

- name: Sleep until OSD server starts - non-windows
Expand Down
1 change: 1 addition & 0 deletions cypress/integration/documentsLayer.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ 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();
cy.wait(5000).get('[data-test-subj="breadcrumb last"]').should('contain', uniqueName);
});

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

0 comments on commit 3239ab8

Please sign in to comment.