From b16be14b4ea19c8a97ff987c89919aa9a0e20e74 Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Thu, 9 Jan 2025 15:02:56 -0800 Subject: [PATCH] Fixed cypress tests. (#1027) (#1032) (cherry picked from commit 370cad8d8442bebd0e6e181a3de60f3ab278c208) Signed-off-by: AWSHurneyt Signed-off-by: github-actions[bot] Co-authored-by: github-actions[bot] --- cypress/integration/bucket_level_monitor_spec.js | 3 +++ cypress/integration/query_level_monitor_spec.js | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/cypress/integration/bucket_level_monitor_spec.js b/cypress/integration/bucket_level_monitor_spec.js index 0c1d507c1..eb6a70a1b 100644 --- a/cypress/integration/bucket_level_monitor_spec.js +++ b/cypress/integration/bucket_level_monitor_spec.js @@ -355,6 +355,9 @@ describe('Bucket-Level Monitors', () => { // Click Edit button cy.contains('Edit').click({ force: true }); + // Wait for page to load + cy.contains('Select clusters').click({ force: true }); + // Click on the Index field and type in multiple index names to replicate the bug cy.get('#index') .click({ force: true }) diff --git a/cypress/integration/query_level_monitor_spec.js b/cypress/integration/query_level_monitor_spec.js index 8995c29d5..23232836c 100644 --- a/cypress/integration/query_level_monitor_spec.js +++ b/cypress/integration/query_level_monitor_spec.js @@ -201,6 +201,9 @@ describe('Query-Level Monitors', () => { // Click Edit button cy.contains('Edit', { timeout: 20000 }).click({ force: true }); + // Wait for page to load + cy.contains('Select clusters').click({ force: true }); + // Click on the Index field and type in multiple index names to replicate the bug cy.get('#index') .click({ force: true }) @@ -318,6 +321,9 @@ describe('Query-Level Monitors', () => { // Select visual editor cy.get('[data-test-subj="visualEditorRadioCard"]').click(); + // Wait for page to load + cy.contains('Select clusters').click({ force: true }); + // Wait for input to load and then type in the index name cy.get('#index').type(`{backspace}${INDEX.SAMPLE_DATA_ECOMMERCE}{enter}`, { force: true });