adjust timeout
This commit is contained in:
@@ -125,8 +125,7 @@ async function expectVideoTilesCount(page: Page, count: number): Promise<void> {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// There should be 5 video elements, visible and autoplaying
|
// There should be 5 video elements, visible and autoplaying
|
||||||
const videoElements = await page.locator("video").all();
|
await expect(page.locator("video")).toHaveCount(count);
|
||||||
expect(videoElements.length).toBe(count);
|
|
||||||
|
|
||||||
const blockDisplayCount = await page
|
const blockDisplayCount = await page
|
||||||
.locator("video")
|
.locator("video")
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ widgetTest("Put call in PIP", async ({ addUser, browserName }) => {
|
|||||||
frame.getByRole("switch", { name: "Stop video", checked: true }),
|
frame.getByRole("switch", { name: "Stop video", checked: true }),
|
||||||
).toBeVisible({
|
).toBeVisible({
|
||||||
// Increase timeout, as this expect was flaky
|
// Increase timeout, as this expect was flaky
|
||||||
timeout: 10000,
|
timeout: 15000,
|
||||||
});
|
});
|
||||||
|
|
||||||
// Switch to the other room, the call should go to PIP
|
// Switch to the other room, the call should go to PIP
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ widgetTest("Start a new call as widget", async ({ asWidget, browserName }) => {
|
|||||||
.locator('iframe[title="Element Call"]')
|
.locator('iframe[title="Element Call"]')
|
||||||
.contentFrame()
|
.contentFrame()
|
||||||
.getByTestId("incall_leave")
|
.getByTestId("incall_leave")
|
||||||
.click({ timeout: 10000 });
|
.click({ timeout: 15000 });
|
||||||
|
|
||||||
await expect(whistler.page.locator(".mx_BasicMessageComposer")).toBeVisible();
|
await expect(whistler.page.locator(".mx_BasicMessageComposer")).toBeVisible();
|
||||||
await expect(brooks.page.locator(".mx_BasicMessageComposer")).toBeVisible();
|
await expect(brooks.page.locator(".mx_BasicMessageComposer")).toBeVisible();
|
||||||
|
|||||||
@@ -193,7 +193,9 @@ export class TestHelpers {
|
|||||||
await page.getByRole("menuitem", { name: "New Room" }).click();
|
await page.getByRole("menuitem", { name: "New Room" }).click();
|
||||||
await page.getByRole("textbox", { name: "Name" }).fill(name);
|
await page.getByRole("textbox", { name: "Name" }).fill(name);
|
||||||
await page.getByRole("button", { name: "Create room" }).click();
|
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 expect(page.getByText("Encryption enabled")).toBeVisible();
|
||||||
await TestHelpers.maybeDismissKeyBackupToast(page);
|
await TestHelpers.maybeDismissKeyBackupToast(page);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user