Try re-enable FF test with webRTC team options

This commit is contained in:
Valere
2026-01-09 16:37:06 +01:00
parent cf579638fd
commit 38e8e5975a
2 changed files with 176 additions and 179 deletions
+19 -2
View File
@@ -65,10 +65,27 @@ export default defineConfig({
ignoreHTTPSErrors: true, ignoreHTTPSErrors: true,
launchOptions: { launchOptions: {
firefoxUserPrefs: { firefoxUserPrefs: {
// Use the same set of options used by WebRTC tests in Firefox
// see https://webrtc.org/getting-started/testing
"media.navigator.permission.disabled": true,
"permissions.default.microphone": 1, "permissions.default.microphone": 1,
"permissions.default.camera": 1, "permissions.default.camera": 1,
// "media.navigator.streams.fake": true, "browser.cache.disk.enable": false,
// "media.navigator.permission.disabled": true, "browser.cache.disk.capacity": 0,
"browser.cache.disk.smart_size.enabled": false,
"browser.cache.disk.smart_size.first_run": false,
"browser.sessionstore.resume_from_crash": false,
"browser.startup.page": 0,
"media.navigator.streams.fake": true,
"media.navigator.permission.disabled": true,
"device.storage.enabled": false,
"media.gstreamer.enabled": false,
"browser.startup.homepage": "about:blank",
"browser.startup.firstrunSkipsHomepage": false,
"extensions.update.enabled": false,
"app.update.enabled": false,
"network.http.use-cache": false,
"browser.shell.checkDefaultBrowser": false,
}, },
}, },
}, },
+6 -26
View File
@@ -11,14 +11,7 @@ import { widgetTest } from "../fixtures/widget-user.ts";
widgetTest.use({ callType: "dm" }); widgetTest.use({ callType: "dm" });
widgetTest( widgetTest("Start a new voice call in DM as widget", async ({ asWidget }) => {
"Start a new voice call in DM as widget",
async ({ asWidget, browserName }) => {
test.skip(
browserName === "firefox",
"The is test is not working on firefox CI environment. No mic/audio device inputs so cam/mic are disabled",
);
test.slow(); // Triples the timeout test.slow(); // Triples the timeout
const { brooks, whistler } = asWidget; const { brooks, whistler } = asWidget;
@@ -104,21 +97,11 @@ widgetTest(
} }
// The widget should be closed on both sides and the timeline should be back on screen // The widget should be closed on both sides and the timeline should be back on screen
await expect( await expect(whistler.page.locator(".mx_BasicMessageComposer")).toBeVisible();
whistler.page.locator(".mx_BasicMessageComposer"),
).toBeVisible();
await expect(brooks.page.locator(".mx_BasicMessageComposer")).toBeVisible(); await expect(brooks.page.locator(".mx_BasicMessageComposer")).toBeVisible();
}, });
);
widgetTest(
"Start a new video call in DM as widget",
async ({ asWidget, browserName }) => {
test.skip(
browserName === "firefox",
"The is test is not working on firefox CI environment. No mic/audio device inputs so cam/mic are disabled",
);
widgetTest("Start a new video call in DM as widget", async ({ asWidget }) => {
test.slow(); // Triples the timeout test.slow(); // Triples the timeout
const { brooks, whistler } = asWidget; const { brooks, whistler } = asWidget;
@@ -204,9 +187,6 @@ widgetTest(
} }
// The widget should be closed on both sides and the timeline should be back on screen // The widget should be closed on both sides and the timeline should be back on screen
await expect( await expect(whistler.page.locator(".mx_BasicMessageComposer")).toBeVisible();
whistler.page.locator(".mx_BasicMessageComposer"),
).toBeVisible();
await expect(brooks.page.locator(".mx_BasicMessageComposer")).toBeVisible(); await expect(brooks.page.locator(".mx_BasicMessageComposer")).toBeVisible();
}, });
);