From ee9897c9c4cd4c893aeca0dd2dafe5124ca3ca4a Mon Sep 17 00:00:00 2001 From: vikhy-aws <191836418+vikhy-aws@users.noreply.github.com> Date: Mon, 6 Jan 2025 17:23:14 -0800 Subject: [PATCH] fix: update timeout for monitor creation to 60secs to handle failing cypress test Signed-off-by: vikhy-aws <191836418+vikhy-aws@users.noreply.github.com> --- cypress/integration/acknowledge_alerts_modal_spec.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cypress/integration/acknowledge_alerts_modal_spec.js b/cypress/integration/acknowledge_alerts_modal_spec.js index 16e68c539..fd98cc32d 100644 --- a/cypress/integration/acknowledge_alerts_modal_spec.js +++ b/cypress/integration/acknowledge_alerts_modal_spec.js @@ -15,6 +15,8 @@ const QUERY_TRIGGER = 'sample_alerts_flyout_query_level_trigger'; const TWENTY_SECONDS = 20000; +const SIXTY_SECONDS = 60000; + describe('AcknowledgeAlertsModal', () => { before(() => { // Delete any existing monitors @@ -32,8 +34,8 @@ describe('AcknowledgeAlertsModal', () => { cy.visit(`${Cypress.env('opensearch_dashboards')}/app/${PLUGIN_NAME}#/monitors`); // Confirm test monitors were created successfully - cy.contains(BUCKET_MONITOR, { timeout: TWENTY_SECONDS }); - cy.contains(QUERY_MONITOR, { timeout: TWENTY_SECONDS }); + cy.contains(BUCKET_MONITOR, { timeout: SIXTY_SECONDS }); + cy.contains(QUERY_MONITOR, { timeout: SIXTY_SECONDS }); // Wait 1 minute for the test monitors to trigger alerts, then go to the 'Alerts by trigger' dashboard page to view alerts cy.wait(60000);