Skip to content
Snippets Groups Projects
Unverified Commit 3dccdd27 authored by Nemanja Glumac's avatar Nemanja Glumac Committed by GitHub
Browse files

Fix flake in `impersonated` E2E spec (#32276)

Whenever hover is involved, we need to make sure UI is absolutely stable.
In failed test cases, the top bar with the test id `edit-bar` was being
removed at the very moment we're trying to hover the warning icon.

This PR makes sure UI updated before we even search for that icon.
parent c58041ce
No related branches found
No related tags found
No related merge requests found
......@@ -366,8 +366,11 @@ describeEE("impersonated permission", () => {
});
function savePermissions() {
cy.get("main").findByText("Save changes").click();
cy.findByTestId("edit-bar").button("Save changes").click();
cy.findByRole("dialog").findByText("Yes").click();
cy.findByTestId("edit-bar")
.findByText("You've made changes to permissions.")
.should("not.exist");
}
function selectImpersonatedAttribute(attribute) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment