try paralelize registrations?

This commit is contained in:
Valere
2026-04-21 18:36:40 +02:00
parent 754a42ffd1
commit 0e2d2c6f72
3 changed files with 17 additions and 11 deletions

View File

@@ -26,8 +26,10 @@ modePairs.forEach(([rtcMode1, rtcMode2]) => {
"The is test is not working on firefox CI environment. No mic/audio device inputs so cam/mic are disabled", "The is test is not working on firefox CI environment. No mic/audio device inputs so cam/mic are disabled",
); );
const florian = await addUser("floriant", HOST1); const [florian, timo] = await Promise.all([
const timo = await addUser("timo", HOST2); addUser("florian", HOST1),
addUser("timo", HOST2),
]);
const roomName = "Call Room"; const roomName = "Call Room";

View File

@@ -8,7 +8,7 @@ Please see LICENSE in the repository root for full details.
import { expect, test } from "@playwright/test"; import { expect, test } from "@playwright/test";
import { widgetTest } from "../fixtures/widget-user.ts"; import { widgetTest } from "../fixtures/widget-user.ts";
import { HOST1, TestHelpers } from "./test-helpers.ts"; import { HOST1, HOST2, TestHelpers } from "./test-helpers.ts";
widgetTest("Create and join a group call", async ({ addUser, browserName }) => { widgetTest("Create and join a group call", async ({ addUser, browserName }) => {
// increase the timeouts, it is a long test and it is annoying to retry from the beginning for a single timeout. // increase the timeouts, it is a long test and it is annoying to retry from the beginning for a single timeout.
@@ -19,11 +19,13 @@ widgetTest("Create and join a group call", async ({ addUser, browserName }) => {
"The is test is not working on firefox CI environment. No mic/audio device inputs so cam/mic are disabled", "The is test is not working on firefox CI environment. No mic/audio device inputs so cam/mic are disabled",
); );
const valere = await addUser("Valere", HOST1); const [valere, timo, robin, halfshot, florian] = await Promise.all([
const timo = await addUser("Timo", HOST1); addUser("Valere", HOST1),
const robin = await addUser("Robin", HOST1); addUser("Timo", HOST1),
const halfshot = await addUser("Halfshot", HOST1); addUser("Robin", HOST1),
const florian = await addUser("florian", HOST1); addUser("Halfshot", HOST1),
addUser("florian", HOST1),
]);
const roomName = "Group Call Room"; const roomName = "Group Call Room";
await TestHelpers.createRoom(roomName, valere.page, [ await TestHelpers.createRoom(roomName, valere.page, [

View File

@@ -18,9 +18,11 @@ widgetTest("Sharing screen in group call", async ({ addUser, browserName }) => {
test.slow(); // We are registering multiple users here, give it more time test.slow(); // We are registering multiple users here, give it more time
const alice = await addUser("Alice", HOST1); const [alice, bob, carol] = await Promise.all([
const bob = await addUser("Bob", HOST1); addUser("Alice", HOST1),
const carol = await addUser("Carol", HOST1); addUser("Bob", HOST1),
addUser("Carol", HOST1),
]);
const roomName = "Meeting Room"; const roomName = "Meeting Room";
await TestHelpers.createRoom(roomName, alice.page, [bob.mxId, carol.mxId]); await TestHelpers.createRoom(roomName, alice.page, [bob.mxId, carol.mxId]);