Skip to content

Commit 857c01f

Browse files
Fix flaky (#77)
Signed-off-by: bowenlan-amzn <[email protected]>
1 parent d7eb536 commit 857c01f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: cypress/integration/indices_spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ describe("Indices", () => {
167167

168168
cy.get(`[data-test-subj="applyPolicyModalEditButton"]`).click({ force: true });
169169

170-
cy.reload();
170+
cy.wait(3000).reload();
171171

172172
cy.contains(SAMPLE_INDEX, { timeout: 20000 });
173173

Diff for: cypress/integration/managed_indices_spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ describe("Managed indices", () => {
7171
cy.contains("Removed policy from 1 managed indices");
7272

7373
// Reload the page
74-
cy.reload();
74+
cy.wait(3000).reload();
7575

7676
// Confirm we are back to empty loading state, give 20 seconds as OSD takes a while to load
7777
cy.contains("There are no existing managed indices.", { timeout: 20000 });

0 commit comments

Comments
 (0)