use localhost ew

This commit is contained in:
Timo
2025-04-03 18:01:43 +02:00
parent afced3eb73
commit 7561e33e38
2 changed files with 24 additions and 0 deletions

View File

@@ -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();

View File

@@ -12,5 +12,13 @@ declare global {
mxMatrixClientPeg: {
get(): Matrix.MatrixClient;
};
mxSettingsStore: {
setValue: (
settingKey: string,
room: string | null,
level: string,
setting: string,
) => void;
};
}
}