Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Update e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dbkr committed Feb 26, 2024
1 parent d866c21 commit 3c5ecf1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions playwright/e2e/knock/knock-into-room.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ test.describe("Knock Into Room", () => {
await expect(roomPreviewBar.getByRole("button", { name: "Request access" })).toBeVisible();

await expect(
page.getByRole("group", { name: "Historical" }).getByRole("treeitem", { name: "Cybersecurity" }),
).toBeVisible();
page.getByRole("group", { name: "Rooms" }).getByRole("treeitem", { name: "Cybersecurity" }),
).not.toBeVisible();
});

test("should knock into the room then knock is cancelled by another user and room is forgotten", async ({
Expand Down
4 changes: 2 additions & 2 deletions playwright/e2e/one-to-one-chat/one-to-one-chat.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ test.describe("1:1 chat room", () => {

// wait till the room was left
await expect(
page.getByRole("group", { name: "Historical" }).locator(".mx_RoomTile").getByText(user2.displayName),
).toBeVisible();
page.getByRole("group", { name: "Rooms" }).locator(".mx_RoomTile").getByText(user2.displayName),
).not.toBeVisible();

// open new 1:1 chat room
await page.goto(`/#/user/${user2.userId}?action=chat`);
Expand Down

0 comments on commit 3c5ecf1

Please sign in to comment.