From f7aa109f0bbc7266ac26025f6dfb1e2236f0674f Mon Sep 17 00:00:00 2001 From: Sean Li Date: Thu, 28 Mar 2024 20:06:28 -0700 Subject: [PATCH] adding wait for request Signed-off-by: Sean Li --- .../integration/plugins/gantt-chart-dashboards/gantt_ui.spec.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cypress/integration/plugins/gantt-chart-dashboards/gantt_ui.spec.js b/cypress/integration/plugins/gantt-chart-dashboards/gantt_ui.spec.js index 3be1bc1df..bfd381aeb 100644 --- a/cypress/integration/plugins/gantt-chart-dashboards/gantt_ui.spec.js +++ b/cypress/integration/plugins/gantt-chart-dashboards/gantt_ui.spec.js @@ -126,7 +126,9 @@ describe( describe('Configure panel settings', { defaultCommandTimeout: 20000 }, () => { beforeEach(() => { cy.visit(`${BASE_PATH}/app/visualize#`); + cy.intercept('**').as('searchRequest'); cy.get('.euiFieldSearch').focus().type(GANTT_VIS_NAME); + cy.wait('@searchRequest'); cy.contains(GANTT_VIS_NAME).should('exist').click({ force: true }); cy.contains('Panel settings').click({ force: true }); });