Go to welcome on logout (#33306)

* Go to welcome on logout

Instead of login, for QR login project

* Update tests

* Add tests

* Delint

* Update comments
This commit is contained in:
Michael Telatynski
2026-04-28 10:24:47 +00:00
committed by GitHub
parent c363d2eb82
commit 5f770bfe4c
8 changed files with 45 additions and 26 deletions
@@ -57,6 +57,6 @@ test.describe("Logout tests", () => {
await locator.getByRole("menuitem", { name: "Remove this device", exact: true }).click();
// Should have logged out directly
await expect(page.getByRole("heading", { name: "Sign in" })).toBeVisible();
await expect(page.getByRole("heading", { name: "Be in your element" })).toBeVisible();
});
});
+3 -3
View File
@@ -245,7 +245,7 @@ export async function logIntoElementAndVerify(page: Page, credentials: Credentia
}
/**
* Click the "sign out" option in Element, and wait for the login page to load
* Click the "sign out" option in Element, and wait for the welcome page to load
*
* @param page - Playwright `Page` object.
* @param discardKeys - if true, expect a "You'll lose access to your encrypted messages" dialog, and dismiss it.
@@ -259,8 +259,8 @@ export async function logOutOfElement(page: Page, discardKeys: boolean = false)
await page.locator(".mx_Dialog .mx_QuestionDialog").getByRole("button", { name: "Remove this device" }).click();
}
// Wait for the login page to load
await page.getByRole("heading", { name: "Sign in" }).click();
// Wait for the welcome page to load
await expect(page.getByRole("heading", { name: "Be in your element" })).toBeVisible();
}
/**