From cdc6e554424f6691536cf631345df2d87cc73566 Mon Sep 17 00:00:00 2001 From: Amardeepsingh Siglani Date: Wed, 4 Oct 2023 12:13:16 -0700 Subject: [PATCH] [Alerting 2.x] Wait before checking update status for composite monitor (#878) * wait before checking update status Signed-off-by: Amardeepsingh Siglani * Added timeout to contains check Co-authored-by: Yulong Ruan Signed-off-by: Amardeepsingh Siglani * Removed explicit wait Signed-off-by: Amardeepsingh Siglani * fixed lint error Signed-off-by: Amardeepsingh Siglani --------- Signed-off-by: Amardeepsingh Siglani Co-authored-by: Yulong Ruan --- .../composite_level_monitor_spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cypress/integration/plugins/alerting-dashboards-plugin/composite_level_monitor_spec.js b/cypress/integration/plugins/alerting-dashboards-plugin/composite_level_monitor_spec.js index 96ea249c6..97fece5eb 100644 --- a/cypress/integration/plugins/alerting-dashboards-plugin/composite_level_monitor_spec.js +++ b/cypress/integration/plugins/alerting-dashboards-plugin/composite_level_monitor_spec.js @@ -185,9 +185,9 @@ describe('CompositeLevelMonitor', () => { // Wait for monitor to be created cy.wait('@updateMonitorRequest').then(() => { - cy.get('.euiTitle--large').contains( - `${SAMPLE_VISUAL_EDITOR_MONITOR}_edited` - ); + cy.contains(`${SAMPLE_VISUAL_EDITOR_MONITOR}_edited`, { + timeout: 5000, + }); }); }); });