mirror of
https://github.com/vector-im/element-call.git
synced 2026-09-01 21:25:18 +00:00
revert changes to mitigate firefox
This commit is contained in:
@@ -62,11 +62,6 @@ test("Start a new call then leave and show the feedback screen", async ({
|
|||||||
test("BugFix: When unmuting in lobby, you had to click twice to unmute in call", async ({
|
test("BugFix: When unmuting in lobby, you had to click twice to unmute in call", async ({
|
||||||
page,
|
page,
|
||||||
}) => {
|
}) => {
|
||||||
// Forward browser console to test output for CI diagnostics.
|
|
||||||
page.on("console", (msg) =>
|
|
||||||
console.log(`[browser:${msg.type()}]`, msg.text()),
|
|
||||||
);
|
|
||||||
|
|
||||||
await page.goto("/");
|
await page.goto("/");
|
||||||
|
|
||||||
await page.getByTestId("home_callName").click();
|
await page.getByTestId("home_callName").click();
|
||||||
@@ -75,27 +70,6 @@ test("BugFix: When unmuting in lobby, you had to click twice to unmute in call",
|
|||||||
await page.getByTestId("home_displayName").fill("me");
|
await page.getByTestId("home_displayName").fill("me");
|
||||||
await page.getByTestId("home_go").click();
|
await page.getByTestId("home_go").click();
|
||||||
|
|
||||||
// Pre-warm getUserMedia AFTER reaching the lobby. On CI runners without
|
|
||||||
// real hardware, enumerateDevices() returns an empty list until getUserMedia
|
|
||||||
// has been called at least once — even with --use-fake-device-for-media-stream.
|
|
||||||
await page.evaluate(async () => {
|
|
||||||
try {
|
|
||||||
const stream = await navigator.mediaDevices.getUserMedia({
|
|
||||||
audio: true,
|
|
||||||
video: true,
|
|
||||||
});
|
|
||||||
console.log(`getUserMedia OK, ${stream.getTracks().length} tracks`);
|
|
||||||
stream.getTracks().forEach((t) => t.stop());
|
|
||||||
const list = await navigator.mediaDevices.enumerateDevices();
|
|
||||||
console.log(
|
|
||||||
"enumerateDevices:",
|
|
||||||
JSON.stringify(list.map((d) => ({ kind: d.kind, label: d.label }))),
|
|
||||||
);
|
|
||||||
} catch (e) {
|
|
||||||
console.error("getUserMedia FAILED", (e as Error).message);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
const microphoneButton = page.getByTestId("incall_mute");
|
const microphoneButton = page.getByTestId("incall_mute");
|
||||||
const cameraButton = page.getByTestId("incall_videomute");
|
const cameraButton = page.getByTestId("incall_videomute");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user