re-use test helper in other files

This commit is contained in:
Valere
2026-01-15 11:50:37 +01:00
parent 0d1488af4c
commit 243f369a24
2 changed files with 9 additions and 28 deletions

View File

@@ -53,6 +53,7 @@ export class TestHelpers {
page: Page,
audioOnly: boolean = false,
): Promise<void> {
// This is the header button that notifies about an ongoing call
const label = audioOnly ? "Voice call started" : "Video call started";
await expect(page.getByText(label)).toBeVisible();
await expect(page.getByRole("button", { name: "Join" })).toBeVisible();
@@ -128,7 +129,6 @@ export class TestHelpers {
page: Page,
andInvite: string[] = [],
): Promise<void> {
await page.pause();
await page
.getByRole("navigation", { name: "Room list" })
.getByRole("button", { name: "New conversation" })
@@ -157,6 +157,11 @@ export class TestHelpers {
}
}
/**
* Accepts a room invite using the room name.
* Locatest the invite in the room list.
*
*/
public static async acceptRoomInvite(
roomName: string,
page: Page,