Skip to content

Commit d7eb536

Browse files
Fixing flaky (#75)
Signed-off-by: bowenlan-amzn <[email protected]>
1 parent 2d9c796 commit d7eb536

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

cypress/integration/managed_indices_spec.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ describe("Managed indices", () => {
3737
// Set welcome screen tracking to false
3838
localStorage.setItem("home:welcome:show", "false");
3939

40+
cy.wait(3000).reload();
41+
4042
// Visit ISM OSD
4143
cy.visit(`${Cypress.env("opensearch_dashboards")}/app/${PLUGIN_NAME}#/managed-indices`);
4244

@@ -199,7 +201,7 @@ describe("Managed indices", () => {
199201

200202
// Click the index option
201203
// TODO flaky: Seems sometime click not actually select the option...
202-
cy.get(`button[title="${SAMPLE_INDEX}"]`).dblclick().debug();
204+
cy.get(`button[title="${SAMPLE_INDEX}"]`).trigger("click", { force: true });
203205

204206
// Get the third combo search input box which should be the policy input
205207
cy.get(`input[data-test-subj="comboBoxSearchInput"]`).eq(2).focus().type(POLICY_ID_2, { parseSpecialCharSequences: false, delay: 1 });

cypress/integration/rollups_spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,13 +237,13 @@ describe("Rollups", () => {
237237
cy.contains(`${ROLLUP_ID}`);
238238

239239
// Click Disable button
240-
cy.get(`[data-test-subj="disableButton"]`).click({ force: true });
240+
cy.get(`[data-test-subj="disableButton"]`).trigger("click", { force: true });
241241

242242
// Confirm we get toaster saying rollup job is disabled
243243
cy.contains(`${ROLLUP_ID} is disabled`);
244244

245245
// Click Enable button
246-
cy.get(`[data-test-subj="enableButton"]`).click({ force: true });
246+
cy.get(`[data-test-subj="enableButton"]`).trigger("click", { force: true });
247247

248248
// Confirm we get toaster saying rollup job is enabled
249249
cy.contains(`${ROLLUP_ID} is enabled`);

0 commit comments

Comments
 (0)