Skip to content

Commit 77a83ac

Browse files
committed
Reduce flakiness in logout action
1 parent 3f8f8f2 commit 77a83ac

File tree

1 file changed

+2
-5
lines changed
  • cypress/e2e/trafficlight/actions

1 file changed

+2
-5
lines changed

cypress/e2e/trafficlight/actions/auth.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,9 @@ export function logout(): string {
6969
cy.get(".mx_ContextualMenu")
7070
.contains("Sign out")
7171
.click()
72-
.wait(100)
72+
.wait(2000)
7373
.then(() => {
74-
Cypress.$(".mx_QuestionDialog")
75-
.find("[data-test-id='dialog-primary-button']")
76-
?.first()
77-
?.trigger("click");
74+
Cypress.$("button:contains('Sign out')")?.trigger("click");
7875
});
7976
cy.wait(2000).then(() => {
8077
Cypress.$(".mx_ErrorDialog .mx_Dialog_primary")?.first().trigger("click");

0 commit comments

Comments
 (0)