Add a playwright test to ensure object fit is correct

This commit is contained in:
Valere
2026-03-10 09:05:05 +01:00
parent 3da762ab36
commit 143b560b20
3 changed files with 87 additions and 1 deletions

View File

@@ -276,4 +276,16 @@ export class TestHelpers {
});
}
}
/**
* Switches to a room in the room list by its name.
* @param page - The EW page
* @param roomName - The name of the room to switch to
*/
public static async switchToRoomNamed(
page: Page,
roomName: string,
): Promise<void> {
await page.getByRole("option", { name: `Open room ${roomName}` }).click();
}
}