diff --git a/playwright/fixtures/widget-user.ts b/playwright/fixtures/widget-user.ts index 891b18ff..ee5b1779 100644 --- a/playwright/fixtures/widget-user.ts +++ b/playwright/fixtures/widget-user.ts @@ -73,6 +73,14 @@ export const widgetTest = test.extend({ reducedMotion: "reduce", }); const ewPage1 = await user1Context.newPage(); + await ewPage1.evaluate(() => { + window.mxSettingsStore.setValue( + "Developer.elementCallUrl", + null, + "device", + "https://localhost:3000/room", + ); + }); // Register the first user await ewPage1.goto("http://localhost:8081/#/welcome"); await ewPage1.getByRole("link", { name: "Create Account" }).click(); @@ -100,6 +108,14 @@ export const widgetTest = test.extend({ reducedMotion: "reduce", }); const ewPage2 = await user2Context.newPage(); + await ewPage2.evaluate(() => { + window.mxSettingsStore.setValue( + "Developer.elementCallUrl", + null, + "device", + "https://localhost:3000/room", + ); + }); // Register the second user await ewPage2.goto("http://localhost:8081/#/welcome"); await ewPage2.getByRole("link", { name: "Create Account" }).click(); diff --git a/playwright/global.d.ts b/playwright/global.d.ts index 8620546f..93f38729 100644 --- a/playwright/global.d.ts +++ b/playwright/global.d.ts @@ -12,5 +12,13 @@ declare global { mxMatrixClientPeg: { get(): Matrix.MatrixClient; }; + mxSettingsStore: { + setValue: ( + settingKey: string, + room: string | null, + level: string, + setting: string, + ) => void; + }; } }