diff --git a/cypress/integration/indices_spec.js b/cypress/integration/indices_spec.js index 47b66f6f5..631320c6f 100644 --- a/cypress/integration/indices_spec.js +++ b/cypress/integration/indices_spec.js @@ -167,7 +167,7 @@ describe("Indices", () => { cy.get(`[data-test-subj="applyPolicyModalEditButton"]`).click({ force: true }); - cy.reload(); + cy.wait(3000).reload(); cy.contains(SAMPLE_INDEX, { timeout: 20000 }); diff --git a/cypress/integration/managed_indices_spec.js b/cypress/integration/managed_indices_spec.js index 94299e8a6..a5db2a381 100644 --- a/cypress/integration/managed_indices_spec.js +++ b/cypress/integration/managed_indices_spec.js @@ -71,7 +71,7 @@ describe("Managed indices", () => { cy.contains("Removed policy from 1 managed indices"); // Reload the page - cy.reload(); + cy.wait(3000).reload(); // Confirm we are back to empty loading state, give 20 seconds as OSD takes a while to load cy.contains("There are no existing managed indices.", { timeout: 20000 });