From 59acc2d871446abf141cb633ea5f7d775c2a135b Mon Sep 17 00:00:00 2001 From: Shenoy Pratik Date: Thu, 18 Jan 2024 03:39:53 -0800 Subject: [PATCH] remove explicit wait on page load Signed-off-by: Shenoy Pratik --- .../plugins/observability-dashboards/6_notebooks.spec.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cypress/integration/plugins/observability-dashboards/6_notebooks.spec.js b/cypress/integration/plugins/observability-dashboards/6_notebooks.spec.js index dce0a64bb..49a4dc7e9 100644 --- a/cypress/integration/plugins/observability-dashboards/6_notebooks.spec.js +++ b/cypress/integration/plugins/observability-dashboards/6_notebooks.spec.js @@ -100,7 +100,9 @@ describe('Test reporting integration if plugin installed', () => { beforeEach(() => { moveToNotebookHome(); cy.get('.euiTableCellContent').contains(TEST_NOTEBOOK).click(); - cy.wait(delayTime * 3); //page needs to process before checking + cy.get('h1[data-test-subj="notebookTitle"]') + .contains(TEST_NOTEBOOK) + .should('exist'); cy.get('body').then(($body) => { skipOn($body.find('#reportingActionsButton').length <= 0); });