mirror of
https://github.com/vector-im/element-call.git
synced 2026-02-23 05:07:03 +00:00
use localhost ew
This commit is contained in:
@@ -73,6 +73,14 @@ export const widgetTest = test.extend<MyFixtures>({
|
||||
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<MyFixtures>({
|
||||
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();
|
||||
|
||||
8
playwright/global.d.ts
vendored
8
playwright/global.d.ts
vendored
@@ -12,5 +12,13 @@ declare global {
|
||||
mxMatrixClientPeg: {
|
||||
get(): Matrix.MatrixClient;
|
||||
};
|
||||
mxSettingsStore: {
|
||||
setValue: (
|
||||
settingKey: string,
|
||||
room: string | null,
|
||||
level: string,
|
||||
setting: string,
|
||||
) => void;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user