From 857c01f0953aa8ea9f05694cf37ea6a10910befe Mon Sep 17 00:00:00 2001 From: Bowen Lan <62091230+bowenlan-amzn@users.noreply.github.com> Date: Tue, 31 Aug 2021 16:42:01 -0700 Subject: [PATCH] Fix flaky (#77) Signed-off-by: bowenlan-amzn --- cypress/integration/indices_spec.js | 2 +- cypress/integration/managed_indices_spec.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 });