Fix E2E tests

This commit is contained in:
Kalle
2026-08-28 07:15:54 +03:00
parent 3a72281143
commit edde15ddb3
2 changed files with 18 additions and 1 deletions

View File

@@ -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\)/,

View File

@@ -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({