Skip to content

Commit

Permalink
put wait to allow page render
Browse files Browse the repository at this point in the history
Signed-off-by: Sarthak Aggarwal <sarthagg@amazon.com>
  • Loading branch information
sarthakaggarwal97 committed Jun 21, 2024
1 parent 2070768 commit 682f09b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ describe("Aliases", () => {
expect(num).not.equal(0);
});

cy.wait(2000)

// Flush btn should be disabled if no items selected
cy.get('[data-test-subj="moreAction"] button').click().get('[data-test-subj="Flush Action"]').should("be.disabled").end();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ describe("Transforms", () => {
force: true,
});

// Extra wait required for page data to load, otherwise "Enable" button will be disabled
cy.wait(2000);

// Confirm we get toaster saying changes saved
cy.contains(`Changes to transform saved`);

Expand Down

0 comments on commit 682f09b

Please sign in to comment.