Stabilise Cypress login tests (#9446)

* Attempt to stabilise login tests

* More stability

* Stabilise s'more

* don't clear LS as we rely on it for enablements

* Add small delay

* Iterate

* Update login.ts
This commit is contained in:
Michael Telatynski
2022-10-18 17:07:23 +01:00
committed by GitHub
parent b04991a962
commit 2cf8a9a2f7
14 changed files with 60 additions and 58 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ function assertNoToasts(): void {
}
function getToast(expectedTitle: string): Chainable<JQuery> {
return cy.get(".mx_Toast_toast").contains("h2", expectedTitle).should("exist").closest(".mx_Toast_toast");
return cy.contains(".mx_Toast_toast h2", expectedTitle).should("exist").closest(".mx_Toast_toast");
}
function acceptToast(expectedTitle: string): void {