Skip to content

Commit e329640

Browse files
committed
test(e2e): update room panel tests
1 parent 6f6a214 commit e329640

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

playwright/e2e/left-panel/room-list-panel/room-list-panel.spec.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,17 @@ test.describe("Room list panel", () => {
2525
test.beforeEach(async ({ page, app, user }) => {
2626
// The notification toast is displayed above the search section
2727
await app.closeNotificationToast();
28+
29+
// Populate the room list
30+
for (let i = 0; i < 20; i++) {
31+
await app.client.createRoom({ name: `room${i}` });
32+
}
2833
});
2934

3035
test("should render the room list panel", { tag: "@screenshot" }, async ({ page, app, user }) => {
3136
const roomListView = getRoomListView(page);
37+
// Wait for the last room list to be visible
38+
await expect(roomListView.getByRole("gridcell", { name: "Open room room19" })).toBeVisible();
3239
await expect(roomListView).toMatchScreenshot("room-list-panel.png");
3340
});
3441
});

0 commit comments

Comments
 (0)