Change all toast rejection code to use the rejectToast utility (#33025)
This commit is contained in:
@@ -6,6 +6,8 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
|
||||
Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
import { rejectToast } from "@element-hq/element-web-playwright-common";
|
||||
|
||||
import type { Locator, Page } from "@playwright/test";
|
||||
import type { ISendEventResponse, EventType, MsgType, IContent } from "matrix-js-sdk/src/matrix";
|
||||
import { test, expect } from "../../element-web-test";
|
||||
@@ -795,7 +797,7 @@ test.describe("Timeline", () => {
|
||||
await sendEvent(app.client, room.roomId);
|
||||
await sendEvent(app.client, room.roomId, true);
|
||||
await page.goto(`/#/room/${room.roomId}`);
|
||||
await app.closeVerifyToast();
|
||||
await rejectToast(page, "Verify this device");
|
||||
|
||||
await app.toggleRoomInfoPanel();
|
||||
|
||||
@@ -821,7 +823,7 @@ test.describe("Timeline", () => {
|
||||
await sendEvent(app.client, room.roomId);
|
||||
|
||||
await page.goto(`/#/room/${room.roomId}`);
|
||||
await app.closeVerifyToast();
|
||||
await rejectToast(page, "Verify this device");
|
||||
|
||||
// Open a room setting dialog
|
||||
await app.toggleRoomInfoPanel();
|
||||
|
||||
Reference in New Issue
Block a user