mirror of
https://github.com/vector-im/element-call.git
synced 2026-09-28 22:45:49 +00:00
Try re-enable FF test with webRTC team options
This commit is contained in:
+19
-2
@@ -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,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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();
|
||||||
},
|
});
|
||||||
);
|
|
||||||
|
|||||||
Reference in New Issue
Block a user