Merge pull request #268 from element-hq/dbkr/rejectToast

Close toasts in playwright test
This commit is contained in:
David Baker
2026-05-19 09:59:27 +01:00
committed by GitHub
@@ -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();