-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Use the new room list by default #30640
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 35 commits
2ea80e0
0ea795a
7dff721
256f82f
06bf4ad
d0d9ec1
73e9371
09ce507
5256f9c
fbb0ca1
1c1a052
1f9a664
76279d8
379f6fc
5e92470
5019c77
a0aaec1
4fa9a1a
75cf1e3
bfc41c7
5586e0a
44162af
e1863c7
2f622f6
36a6789
c3e0e11
3797b34
e5f5095
3d56a54
66e2e5d
56e3ae1
d046bb0
b8141ea
4b5b49b
3dfba4d
4ed8745
daaa25a
4ff2f0f
e5a58a4
48277ec
9b4ecaa
f4e7e50
5db439b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
dbkr marked this conversation as resolved.
Show resolved
Hide resolved
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,7 +34,7 @@ test.describe("Mark as Unread", () => { | |
| await bot.sendMessage(roomId, "I am a robot. Beep."); | ||
|
|
||
| // Regular notification on new message | ||
| await expect(page.getByLabel(TEST_ROOM_NAME + " 1 unread message.")).toBeVisible(); | ||
| await expect(page.getByLabel(`Open room ${TEST_ROOM_NAME} with 1 unread message.`)).toBeVisible(); | ||
| await expect(page).toHaveTitle("Element [1]"); | ||
|
|
||
| await page.goto("/#/room/" + roomId); | ||
|
|
@@ -47,10 +47,13 @@ test.describe("Mark as Unread", () => { | |
| await page.goto("/#/room/" + dummyRoomId); | ||
|
|
||
| const roomTile = page.getByLabel(TEST_ROOM_NAME); | ||
| await roomTile.focus(); | ||
| await roomTile.getByRole("button", { name: "Room options" }).click(); | ||
| await roomTile.hover(); | ||
|
||
| await roomTile.getByRole("button", { name: "More Options" }).click(); | ||
| await page.getByRole("menuitem", { name: "Mark as unread" }).click(); | ||
|
|
||
| await expect(page.getByLabel(TEST_ROOM_NAME + " Unread messages.")).toBeVisible(); | ||
| // focus the user menu to avoid to have hover decoration | ||
| await page.getByRole("button", { name: "User menu" }).focus(); | ||
|
|
||
| await expect(roomTile.getByTestId("notification-decoration")).toBeVisible(); | ||
| }); | ||
| }); | ||
Uh oh!
There was an error while loading. Please reload this page.