Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix(tests): Bumps wait time for lobby joining.
damencho0cb8f9dadf2c
diff --git a/tests/pageobjects/PreMeetingScreen.ts b/tests/pageobjects/PreMeetingScreen.tsindex ad384e56ee..9e248ebebb 100644--- a/tests/pageobjects/PreMeetingScreen.ts+++ b/tests/pageobjects/PreMeetingScreen.ts@@ -38,13 +38,13 @@ export default abstract class PreMeetingScreen extends BasePageObject {/*** Checks internally whether lobby room is joined.*- * @returns {Promise<void>}+ * @returns {Promise<boolean>}*/- waitToJoinLobby(): Promise<void> {+ waitToJoinLobby(): Promise<boolean> {return this.participant.driver.waitUntil(() => this.isLobbyRoomJoined(),{- timeout: 6_000, // 6 seconds+ timeout: 15_000, // 15 secondstimeoutMsg: `Timeout waiting to join lobby for ${this.participant.name}`});diff --git a/tests/specs/moderation/lobby.spec.ts b/tests/specs/moderation/lobby.spec.tsindex c35bd52852..bc95ec59d7 100644--- a/tests/specs/moderation/lobby.spec.ts+++ b/tests/specs/moderation/lobby.spec.ts@@ -8,7 +8,6 @@ import {hangupAllParticipants} from '../../helpers/participants';import type { IJoinOptions } from '../../helpers/types';-import type PreMeetingScreen from '../../pageobjects/PreMeetingScreen';setTestProperties(__filename, {usesBrowsers: [ 'p1', 'p2', 'p3' ]@@ -445,10 +444,8 @@ async function enterLobby(participant: Participant, enterDisplayName = false, us});const { p3 } = ctx;- let screen: PreMeetingScreen;+ let screen;- // WebParticipant participant3 = getParticipant3();- // ParentPreMeetingScreen lobbyScreen;if (usePreJoin) {screen = p3.getPreJoinScreen();} else {@@ -469,7 +466,7 @@ async function enterLobby(participant: Participant, enterDisplayName = false, usexpect(await joinButton.isExisting()).toBe(true);if (enterDisplayName) {- let classes = await joinButton.getAttribute('class');+ let classes = await joinButton.getAttribute('class') || '';if (!usePreJoin) {// check join button is disabled@@ -483,7 +480,7 @@ async function enterLobby(participant: Participant, enterDisplayName = false, usawait screen.enterDisplayName(P3);// check join button is enabled- classes = await joinButton.getAttribute('class');+ classes = await joinButton.getAttribute('class') || '';expect(classes.includes('disabled')).toBe(false);}