adjust timeout

This commit is contained in:
Valere
2026-04-22 15:40:06 +02:00
parent 879526ce5e
commit f355aa1ed7
4 changed files with 6 additions and 5 deletions

View File

@@ -47,7 +47,7 @@ widgetTest("Put call in PIP", async ({ addUser, browserName }) => {
frame.getByRole("switch", { name: "Stop video", checked: true }),
).toBeVisible({
// Increase timeout, as this expect was flaky
timeout: 10000,
timeout: 15000,
});
// Switch to the other room, the call should go to PIP

View File

@@ -81,7 +81,7 @@ widgetTest("Start a new call as widget", async ({ asWidget, browserName }) => {
.locator('iframe[title="Element Call"]')
.contentFrame()
.getByTestId("incall_leave")
.click({ timeout: 10000 });
.click({ timeout: 15000 });
await expect(whistler.page.locator(".mx_BasicMessageComposer")).toBeVisible();
await expect(brooks.page.locator(".mx_BasicMessageComposer")).toBeVisible();

View File

@@ -193,7 +193,9 @@ export class TestHelpers {
await page.getByRole("menuitem", { name: "New Room" }).click();
await page.getByRole("textbox", { name: "Name" }).fill(name);
await page.getByRole("button", { name: "Create room" }).click();
await expect(page.getByText("You created this room.")).toBeVisible();
await expect(page.getByText("You created this room.")).toBeVisible({
timeout: 10000,
});
await expect(page.getByText("Encryption enabled")).toBeVisible();
await TestHelpers.maybeDismissKeyBackupToast(page);