From 3239ab818e20b7940276ff6aae4a29ae1629dfd0 Mon Sep 17 00:00:00 2001 From: Junqiu Lei Date: Thu, 19 Jan 2023 11:47:41 -0800 Subject: [PATCH] [Cypress test fix] Wait map saved before open maps listing Signed-off-by: Junqiu Lei --- .github/workflows/cypress-workflow.yml | 2 +- cypress/integration/documentsLayer.spec.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cypress-workflow.yml b/.github/workflows/cypress-workflow.yml index 903f0e7f..604f7f7c 100644 --- a/.github/workflows/cypress-workflow.yml +++ b/.github/workflows/cypress-workflow.yml @@ -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 diff --git a/cypress/integration/documentsLayer.spec.js b/cypress/integration/documentsLayer.spec.js index 58df4fc3..9e166306 100644 --- a/cypress/integration/documentsLayer.spec.js +++ b/cypress/integration/documentsLayer.spec.js @@ -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', () => {