From edde15ddb3dbd5772976e3b13546cb01fa62048a Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Fri, 28 Aug 2026 07:15:54 +0300 Subject: [PATCH] Fix E2E tests --- e2e/chat.spec.ts | 16 +++++++++++++++- e2e/sendouq.spec.ts | 3 +++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/e2e/chat.spec.ts b/e2e/chat.spec.ts index f362835e4..89b7c6a0e 100644 --- a/e2e/chat.spec.ts +++ b/e2e/chat.spec.ts @@ -361,7 +361,21 @@ test.describe("Chat", () => { new ChatSidebar(other.page).chat().message(/confirmed score/), ).toBeVisible(); - // concluding the match ended both groups and the match room with them + // concluding the match ended both groups and the match room with them, + // but its unread system message keeps it listed until it is read + await expect( + alphaChat.roomRowUnreadBadge(`Match #${match.id}`), + ).toHaveText("1"); + await expect(alphaChat.locators.inactiveToggle).toHaveText( + /Inactive \(1\)/, + ); + + await alphaChat.openRoom(`Match #${match.id}`); + + await expect(alphaChat.chat().message(/confirmed score/)).toBeVisible(); + + await alphaChat.backToRoomList(); + await expect(alphaChat.locators.roomRows).toHaveCount(0); await expect(alphaChat.locators.inactiveToggle).toHaveText( /Inactive \(2\)/, diff --git a/e2e/sendouq.spec.ts b/e2e/sendouq.spec.ts index f85333cf0..3d6cde298 100644 --- a/e2e/sendouq.spec.ts +++ b/e2e/sendouq.spec.ts @@ -371,6 +371,9 @@ test.describe("SendouQ", () => { page, factories, }) => { + // every one of the eight members logs in and confirms on their own + test.slow(); + const challengers = await factories.UserFactory.createMany(FULL_GROUP_SIZE); const accepters = await factories.UserFactory.createMany(FULL_GROUP_SIZE); const challengerGroup = await factories.SQGroupFactory.create({