Close toasts in playwright test

So the test can srtill see the room list tile after https://github.com/element-hq/element-web/pull/33444
This commit is contained in:
David Baker
2026-05-18 18:59:39 +02:00
parent 78e4c5502e
commit aee4cd9cdb
@@ -5,6 +5,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
Please see LICENSE files in the repository root for full details.
*/
import { rejectToast } from "@element-hq/element-web-playwright-common";
import { type SynapseContainer } from "@element-hq/element-web-playwright-common/lib/testcontainers/index.js";
import { test, expect } from "../../../../playwright/element-web-test.ts";
@@ -203,6 +204,9 @@ test.describe("Opendesk", () => {
user_id: user.userId,
});
await rejectToast(page, "Verify this device");
await rejectToast(page, "Notifications");
await page.getByText("Trusted Widget").click();
await page.getByText("Accept").click();