also test that video is muted when earpiece overlay is on
This commit is contained in:
@@ -52,13 +52,12 @@ test("@mobile Start a new call then leave and show the feedback screen", async (
|
|||||||
).toBeVisible();
|
).toBeVisible();
|
||||||
});
|
});
|
||||||
|
|
||||||
mobileTest("Start a new call as widget", async ({ asMobile, browser }) => {
|
mobileTest(
|
||||||
|
"Test earpiece overlay in controlledAudioDevices mode",
|
||||||
|
async ({ asMobile, browser }) => {
|
||||||
test.slow(); // Triples the timeout
|
test.slow(); // Triples the timeout
|
||||||
const { creatorPage, inviteLink } = asMobile;
|
const { creatorPage, inviteLink } = asMobile;
|
||||||
|
|
||||||
// test("Show earpiece overlay when output is earpiece", async ({ browser }) => {
|
|
||||||
// Use reduce motion to disable animations that are making the tests a bit flaky
|
|
||||||
|
|
||||||
// ========
|
// ========
|
||||||
// ACT: The other user use the invite link to join the call as a guest
|
// ACT: The other user use the invite link to join the call as a guest
|
||||||
// ========
|
// ========
|
||||||
@@ -68,7 +67,9 @@ mobileTest("Start a new call as widget", async ({ asMobile, browser }) => {
|
|||||||
const guestPage = await guestInviteeContext.newPage();
|
const guestPage = await guestInviteeContext.newPage();
|
||||||
await guestPage.goto(inviteLink + "&controlledAudioDevices=true");
|
await guestPage.goto(inviteLink + "&controlledAudioDevices=true");
|
||||||
|
|
||||||
await guestPage.getByRole("button", { name: "Continue in browser" }).click();
|
await guestPage
|
||||||
|
.getByRole("button", { name: "Continue in browser" })
|
||||||
|
.click();
|
||||||
|
|
||||||
await guestPage.getByTestId("joincall_displayName").fill("Invitee");
|
await guestPage.getByTestId("joincall_displayName").fill("Invitee");
|
||||||
await expect(guestPage.getByTestId("joincall_joincall")).toBeVisible();
|
await expect(guestPage.getByTestId("joincall_joincall")).toBeVisible();
|
||||||
@@ -108,5 +109,7 @@ mobileTest("Start a new call as widget", async ({ asMobile, browser }) => {
|
|||||||
guestPage.getByRole("button", { name: "Back to Speaker Mode" }),
|
guestPage.getByRole("button", { name: "Back to Speaker Mode" }),
|
||||||
).toBeVisible();
|
).toBeVisible();
|
||||||
|
|
||||||
// await guestPage.pause();
|
// Should auto-mute the video when earpiece is selected
|
||||||
});
|
await expect(guestPage.getByTestId("incall_videomute")).toBeDisabled();
|
||||||
|
},
|
||||||
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user