mirror of
https://github.com/vector-im/element-call.git
synced 2026-07-30 19:39:22 +00:00
adjust timeouts
This commit is contained in:
@@ -59,13 +59,14 @@ modePairs.forEach(([rtcMode1, rtcMode2]) => {
|
|||||||
const frame = user.page
|
const frame = user.page
|
||||||
.locator('iframe[title="Element Call"]')
|
.locator('iframe[title="Element Call"]')
|
||||||
.contentFrame();
|
.contentFrame();
|
||||||
await expect(frame.getByTestId("videoTile")).toHaveCount(2);
|
await expect(frame.getByTestId("videoTile")).toHaveCount(2, {
|
||||||
|
timeout: 10000,
|
||||||
|
});
|
||||||
|
|
||||||
// There are no other options than to wait for all media to be ready?
|
|
||||||
// Or it is too flaky :/
|
|
||||||
await user.page.waitForTimeout(3000);
|
|
||||||
// No one should be waiting for media
|
// No one should be waiting for media
|
||||||
await expect(frame.getByText("Waiting for media...")).not.toBeVisible();
|
await expect(frame.getByText("Waiting for media...")).not.toBeVisible({
|
||||||
|
timeout: 10000,
|
||||||
|
});
|
||||||
|
|
||||||
// There should be 2 video elements, visible and autoplaying
|
// There should be 2 video elements, visible and autoplaying
|
||||||
const videoElements = await frame.locator("video").all();
|
const videoElements = await frame.locator("video").all();
|
||||||
|
|||||||
@@ -63,7 +63,9 @@ widgetTest("Create and join a group call", async ({ addUser, browserName }) => {
|
|||||||
.contentFrame();
|
.contentFrame();
|
||||||
await expect(
|
await expect(
|
||||||
frame.getByRole("switch", { name: "Stop video", checked: true }),
|
frame.getByRole("switch", { name: "Stop video", checked: true }),
|
||||||
).toBeVisible();
|
).toBeVisible({
|
||||||
|
timeout: 10000,
|
||||||
|
});
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -64,8 +64,10 @@ widgetTest("Put call in PIP", async ({ addUser, browserName }) => {
|
|||||||
const frame = valere.page
|
const frame = valere.page
|
||||||
.locator('iframe[title="Element Call"]')
|
.locator('iframe[title="Element Call"]')
|
||||||
.contentFrame();
|
.contentFrame();
|
||||||
|
|
||||||
|
await expect(frame.locator("video")).toHaveCount(1, { timeout: 10000 });
|
||||||
|
|
||||||
const videoElements = await frame.locator("video").all();
|
const videoElements = await frame.locator("video").all();
|
||||||
expect(videoElements.length).toBe(1);
|
|
||||||
|
|
||||||
const pipVideo = videoElements[0];
|
const pipVideo = videoElements[0];
|
||||||
await expect(pipVideo).toHaveCSS("object-fit", "cover");
|
await expect(pipVideo).toHaveCSS("object-fit", "cover");
|
||||||
|
|||||||
@@ -83,6 +83,10 @@ widgetTest("Start a new call as widget", async ({ asWidget, browserName }) => {
|
|||||||
.getByTestId("incall_leave")
|
.getByTestId("incall_leave")
|
||||||
.click({ timeout: 15000 });
|
.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();
|
timeout: 10000,
|
||||||
|
});
|
||||||
|
await expect(brooks.page.locator(".mx_BasicMessageComposer")).toBeVisible({
|
||||||
|
timeout: 10000,
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user