test: fix notification toast order in custom section to fix flacky tests (#33749)

This commit is contained in:
Florian Duros
2026-06-04 16:24:49 +02:00
committed by GitHub
parent 486fa57b68
commit 6a6e603450
@@ -43,8 +43,8 @@ test.describe("Room list custom sections", () => {
test.beforeEach(async ({ page, app, user }) => {
// The toasts are displayed above the search section
await rejectToast(page, "Notifications");
await rejectToast(page, "Verify this device");
await rejectToast(page, "Notifications");
// Focus the user menu to avoid hover decoration
await page.getByRole("button", { name: "User menu" }).focus();