Change all toast rejection code to use the rejectToast utility (#33025)

This commit is contained in:
Andy Balaam
2026-05-18 16:31:52 +00:00
committed by GitHub
parent d40fe81616
commit 5be0b778db
29 changed files with 150 additions and 107 deletions
@@ -7,6 +7,7 @@ Please see LICENSE files in the repository root for full details.
*/
import { type Locator, type Page, type Request } from "@playwright/test";
import { rejectToast } from "@element-hq/element-web-playwright-common";
import { test as base, expect } from "../../element-web-test";
import type { ElementAppPage } from "../../pages/ElementAppPage";
@@ -71,9 +72,9 @@ test.describe("Sliding Sync", () => {
});
// Load the user fixture for all tests
test.beforeEach(async ({ app, user }) => {
await app.closeVerifyToast();
await app.closeNotificationToast();
test.beforeEach(async ({ app, page, user }) => {
await rejectToast(page, "Verify this device");
await rejectToast(page, "Notifications");
});
test("should render the Rooms list in reverse chronological order by default and allowing sorting A-Z", async ({