From db44222de1ded787b0c408531f32210d514dfc7f Mon Sep 17 00:00:00 2001 From: Sean Li Date: Mon, 6 May 2024 20:58:21 -0700 Subject: [PATCH] updating panels tests (#1272) Signed-off-by: Sean Li Co-authored-by: Hailong Cui --- .../plugins/observability-dashboards/4_panels.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/integration/plugins/observability-dashboards/4_panels.spec.js b/cypress/integration/plugins/observability-dashboards/4_panels.spec.js index 2c03c7df1..001c25f9f 100644 --- a/cypress/integration/plugins/observability-dashboards/4_panels.spec.js +++ b/cypress/integration/plugins/observability-dashboards/4_panels.spec.js @@ -30,11 +30,11 @@ describe('Testing panels table', () => { cy.get('input.euiFieldText').focus().type(TEST_PANEL, { delay: 50, }); + cy.intercept('POST', '/api/saved_objects/*').as('createDashboard'); cy.get('.euiButton__text') .contains(/^Create$/) .trigger('mouseover') .click(); - cy.intercept('POST', '/api/saved_objects/*').as('createDashboard'); cy.wait('@createDashboard'); cy.contains(TEST_PANEL).should('exist');