diff --git a/cypress/integration/bucket_level_monitor_spec.js b/cypress/integration/bucket_level_monitor_spec.js index 92994cac4..1d8077af0 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 85a14f53d..6743d7d1a 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: 25000 }).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') .should('be.visible') @@ -319,6 +322,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 });