use localhost ew
This commit is contained in:
@@ -73,6 +73,14 @@ export const widgetTest = test.extend<MyFixtures>({
|
|||||||
reducedMotion: "reduce",
|
reducedMotion: "reduce",
|
||||||
});
|
});
|
||||||
const ewPage1 = await user1Context.newPage();
|
const ewPage1 = await user1Context.newPage();
|
||||||
|
await ewPage1.evaluate(() => {
|
||||||
|
window.mxSettingsStore.setValue(
|
||||||
|
"Developer.elementCallUrl",
|
||||||
|
null,
|
||||||
|
"device",
|
||||||
|
"https://localhost:3000/room",
|
||||||
|
);
|
||||||
|
});
|
||||||
// Register the first user
|
// Register the first user
|
||||||
await ewPage1.goto("http://localhost:8081/#/welcome");
|
await ewPage1.goto("http://localhost:8081/#/welcome");
|
||||||
await ewPage1.getByRole("link", { name: "Create Account" }).click();
|
await ewPage1.getByRole("link", { name: "Create Account" }).click();
|
||||||
@@ -100,6 +108,14 @@ export const widgetTest = test.extend<MyFixtures>({
|
|||||||
reducedMotion: "reduce",
|
reducedMotion: "reduce",
|
||||||
});
|
});
|
||||||
const ewPage2 = await user2Context.newPage();
|
const ewPage2 = await user2Context.newPage();
|
||||||
|
await ewPage2.evaluate(() => {
|
||||||
|
window.mxSettingsStore.setValue(
|
||||||
|
"Developer.elementCallUrl",
|
||||||
|
null,
|
||||||
|
"device",
|
||||||
|
"https://localhost:3000/room",
|
||||||
|
);
|
||||||
|
});
|
||||||
// Register the second user
|
// Register the second user
|
||||||
await ewPage2.goto("http://localhost:8081/#/welcome");
|
await ewPage2.goto("http://localhost:8081/#/welcome");
|
||||||
await ewPage2.getByRole("link", { name: "Create Account" }).click();
|
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: {
|
mxMatrixClientPeg: {
|
||||||
get(): Matrix.MatrixClient;
|
get(): Matrix.MatrixClient;
|
||||||
};
|
};
|
||||||
|
mxSettingsStore: {
|
||||||
|
setValue: (
|
||||||
|
settingKey: string,
|
||||||
|
room: string | null,
|
||||||
|
level: string,
|
||||||
|
setting: string,
|
||||||
|
) => void;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user