Skip to content

Commit 7561e33

Browse files
committed
use localhost ew
1 parent afced3e commit 7561e33

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

playwright/fixtures/widget-user.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,14 @@ export const widgetTest = test.extend<MyFixtures>({
7373
reducedMotion: "reduce",
7474
});
7575
const ewPage1 = await user1Context.newPage();
76+
await ewPage1.evaluate(() => {
77+
window.mxSettingsStore.setValue(
78+
"Developer.elementCallUrl",
79+
null,
80+
"device",
81+
"https://localhost:3000/room",
82+
);
83+
});
7684
// Register the first user
7785
await ewPage1.goto("http://localhost:8081/#/welcome");
7886
await ewPage1.getByRole("link", { name: "Create Account" }).click();
@@ -100,6 +108,14 @@ export const widgetTest = test.extend<MyFixtures>({
100108
reducedMotion: "reduce",
101109
});
102110
const ewPage2 = await user2Context.newPage();
111+
await ewPage2.evaluate(() => {
112+
window.mxSettingsStore.setValue(
113+
"Developer.elementCallUrl",
114+
null,
115+
"device",
116+
"https://localhost:3000/room",
117+
);
118+
});
103119
// Register the second user
104120
await ewPage2.goto("http://localhost:8081/#/welcome");
105121
await ewPage2.getByRole("link", { name: "Create Account" }).click();

playwright/global.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,13 @@ declare global {
1212
mxMatrixClientPeg: {
1313
get(): Matrix.MatrixClient;
1414
};
15+
mxSettingsStore: {
16+
setValue: (
17+
settingKey: string,
18+
room: string | null,
19+
level: string,
20+
setting: string,
21+
) => void;
22+
};
1523
}
1624
}

0 commit comments

Comments
 (0)