diff --git a/cypress/integration/plugins/observability-dashboards/4_panels.spec.js b/cypress/integration/plugins/observability-dashboards/4_panels.spec.js index 97ded2e36..7dff570b4 100644 --- a/cypress/integration/plugins/observability-dashboards/4_panels.spec.js +++ b/cypress/integration/plugins/observability-dashboards/4_panels.spec.js @@ -66,7 +66,7 @@ describe('Testing panels table', () => { .contains('Duplicate') .trigger('mouseover') .click(); - cy.wait(delay); + cy.get('.panel-header-count').contains('(2)'); }); it('Deletes panels', () => { @@ -108,7 +108,7 @@ describe('Testing panels table', () => { .contains(/^Create$/) .trigger('mouseover') .click(); - cy.wait(delay * 2); + cy.contains(TEST_PANEL).should('exist'); }); }); diff --git a/cypress/utils/plugins/observability-dashboards/constants.js b/cypress/utils/plugins/observability-dashboards/constants.js index 2d59cf04d..380f51e5d 100644 --- a/cypress/utils/plugins/observability-dashboards/constants.js +++ b/cypress/utils/plugins/observability-dashboards/constants.js @@ -191,7 +191,7 @@ export const landOnPanels = () => { * Panel Constants */ -export const PANEL_DELAY = 100; +export const PANEL_DELAY = 0; export const TEST_PANEL = 'Test Panel'; export const SAMPLE_PANEL = '[Logs] Web traffic Panel';