Add screenshot for create room dialog.

This commit is contained in:
Half-Shot 2025-07-07 19:22:17 +01:00
parent d0daf2c2af
commit 47a640d780
2 changed files with 3 additions and 1 deletions

View File

@ -24,10 +24,12 @@ test.describe("Create Room", () => {
await dialog.getByRole("option", { name: "Public room" }).click();
// Fill room address
await dialog.getByRole("textbox", { name: "Room address" }).fill("test-room-1");
// Snapshot it
await expect(dialog).toMatchScreenshot("create-room.png");
// Submit
await dialog.getByRole("button", { name: "Create room" }).click();
await expect(dialog).toMatchScreenshot("create-room.png");
await expect(page).toHaveURL(new RegExp(`/#/room/#test-room-1:${user.homeServer}`));
const header = page.locator(".mx_RoomHeader");

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB