mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-07 11:46:09 -05:00
Fix E2E tests
This commit is contained in:
@@ -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\)/,
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user