Room list: fix *Chat moved* toast appearing when room list is loaded (#34305)
* Fix Chat moved toast appearing when room list is loaded * Update e2e tests
This commit is contained in:
@@ -181,15 +181,6 @@ test.describe("Room list unread activity toast", () => {
|
||||
// Wait until the collapsed Chats header has been pushed offscreen (all favourites synced).
|
||||
await expect(chatsHeader).not.toBeInViewport();
|
||||
|
||||
// Tagging rooms into the Favourites section raises a transient "Chat moved" toast, which
|
||||
// shares the single toast slot with — and takes precedence over — the unread-activity toast
|
||||
// (see RoomListView). Dismiss it via its close button so the unread toast can surface; by now
|
||||
// all favourites have synced, so it will not re-appear.
|
||||
const chatMovedToast = page.getByText("Chat moved");
|
||||
await expect(chatMovedToast).toBeVisible();
|
||||
await page.getByRole("button", { name: "Close" }).click();
|
||||
await expect(chatMovedToast).not.toBeVisible();
|
||||
|
||||
// The collapsed Chats header is offscreen, but its hidden notification raises the toast.
|
||||
await expect(getToast(page)).toBeVisible();
|
||||
|
||||
|
||||
BIN
Binary file not shown.
|
Before Width: | Height: | Size: 9.9 KiB After Width: | Height: | Size: 6.7 KiB |
BIN
Binary file not shown.
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 14 KiB |
Reference in New Issue
Block a user