Skip to content

Commit

Permalink
Fixing flaky (#75)
Browse files Browse the repository at this point in the history
Signed-off-by: bowenlan-amzn <[email protected]>
  • Loading branch information
bowenlan-amzn authored Aug 31, 2021
1 parent 2d9c796 commit d7eb536
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion cypress/integration/managed_indices_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ describe("Managed indices", () => {
// Set welcome screen tracking to false
localStorage.setItem("home:welcome:show", "false");

cy.wait(3000).reload();

// Visit ISM OSD
cy.visit(`${Cypress.env("opensearch_dashboards")}/app/${PLUGIN_NAME}#/managed-indices`);

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

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

// Get the third combo search input box which should be the policy input
cy.get(`input[data-test-subj="comboBoxSearchInput"]`).eq(2).focus().type(POLICY_ID_2, { parseSpecialCharSequences: false, delay: 1 });
Expand Down
4 changes: 2 additions & 2 deletions cypress/integration/rollups_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,13 +237,13 @@ describe("Rollups", () => {
cy.contains(`${ROLLUP_ID}`);

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

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

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

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

0 comments on commit d7eb536

Please sign in to comment.