Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(tests): Simplify suite names.

damencho05374e292bb8
diff --git a/tests/specs/2way/audioOnly.spec.ts b/tests/specs/2way/audioOnly.spec.ts
index 938f658582..1352269787 100644
--- a/tests/specs/2way/audioOnly.spec.ts
+++ b/tests/specs/2way/audioOnly.spec.ts
@@ -1,6 +1,6 @@
import { ensureTwoParticipants } from '../../helpers/participants';
-describe('Audio only - ', () => {
+describe('Audio only', () => {
it('joining the meeting', async () => {
await ensureTwoParticipants(ctx, {
skipFirstModerator: true
diff --git a/tests/specs/2way/displayName.spec.ts b/tests/specs/2way/displayName.spec.ts
index 97b1f44990..00981dfec0 100644
--- a/tests/specs/2way/displayName.spec.ts
+++ b/tests/specs/2way/displayName.spec.ts
@@ -1,6 +1,6 @@
import { ensureTwoParticipants } from '../../helpers/participants';
-describe('DisplayName - ', () => {
+describe('DisplayName', () => {
it('joining the meeting', async () => {
await ensureTwoParticipants(ctx, {
skipDisplayName: true
diff --git a/tests/specs/2way/endConference.spec.ts b/tests/specs/2way/endConference.spec.ts
index 5cb2f54e8a..e5e9cb5873 100644
--- a/tests/specs/2way/endConference.spec.ts
+++ b/tests/specs/2way/endConference.spec.ts
@@ -1,6 +1,6 @@
import { ensureTwoParticipants } from '../../helpers/participants';
-describe('End Conference - ', () => {
+describe('End Conference', () => {
it('joining the meeting', async () => {
await ensureTwoParticipants(ctx);
});
diff --git a/tests/specs/2way/fakeDialInAudio.spec.ts b/tests/specs/2way/fakeDialInAudio.spec.ts
index b9b785b0e2..94520e322c 100644
--- a/tests/specs/2way/fakeDialInAudio.spec.ts
+++ b/tests/specs/2way/fakeDialInAudio.spec.ts
@@ -3,7 +3,7 @@ import process from 'node:process';
import { ensureOneParticipant, ensureTwoParticipants } from '../../helpers/participants';
import { cleanup, isDialInEnabled, waitForAudioFromDialInParticipant } from '../helpers/DialIn';
-describe('Fake Dial-In - ', () => {
+describe('Fake Dial-In', () => {
it('join participant', async () => {
// we execute fake dial in only if the real dial in is not enabled
diff --git a/tests/specs/2way/iFrameApiParticipantsPresence.spec.ts b/tests/specs/2way/iFrameApiParticipantsPresence.spec.ts
index c9c6e6989c..d59622cc6a 100644
--- a/tests/specs/2way/iFrameApiParticipantsPresence.spec.ts
+++ b/tests/specs/2way/iFrameApiParticipantsPresence.spec.ts
@@ -30,7 +30,7 @@ async function checkParticipantLeftHook(p: Participant, reason: string) {
}
}
-describe('Participants presence - ', () => {
+describe('Participants presence', () => {
it('joining the meeting', async () => {
// ensure 2 participants one moderator and one guest, we will load both with iframeAPI
await ensureTwoParticipants(ctx);
diff --git a/tests/specs/2way/kick.spec.ts b/tests/specs/2way/kick.spec.ts
index b7af7d4bfc..ef01b9d87c 100644
--- a/tests/specs/2way/kick.spec.ts
+++ b/tests/specs/2way/kick.spec.ts
@@ -1,6 +1,6 @@
import { ensureTwoParticipants } from '../../helpers/participants';
-describe('Kick - ', () => {
+describe('Kick', () => {
it('joining the meeting', async () => {
await ensureTwoParticipants(ctx);
@@ -26,6 +26,9 @@ describe('Kick - ', () => {
});
});
+/**
+ * Kicks the second participant and checks that the participant is removed from the conference and that dialog is open.
+ */
async function kickParticipant2AndCheck() {
const { p1, p2 } = ctx;
diff --git a/tests/specs/2way/selfView.spec.ts b/tests/specs/2way/selfView.spec.ts
index 9fd8507028..8add001874 100644
--- a/tests/specs/2way/selfView.spec.ts
+++ b/tests/specs/2way/selfView.spec.ts
@@ -1,7 +1,7 @@
import type { Participant } from '../../helpers/Participant';
import { ensureTwoParticipants } from '../../helpers/participants';
-describe('Self view - ', () => {
+describe('Self view', () => {
it('joining the meeting', async () => {
await ensureTwoParticipants(ctx);
});
diff --git a/tests/specs/3way/activeSpeaker.spec.ts b/tests/specs/3way/activeSpeaker.spec.ts
index a4637d9129..0ddb77185c 100644
--- a/tests/specs/3way/activeSpeaker.spec.ts
+++ b/tests/specs/3way/activeSpeaker.spec.ts
@@ -2,7 +2,7 @@
import type { Participant } from '../../helpers/Participant';
import { ensureThreeParticipants, muteAudioAndCheck } from '../../helpers/participants';
-describe('ActiveSpeaker ', () => {
+describe('ActiveSpeaker', () => {
it('testActiveSpeaker', async () => {
await ensureThreeParticipants(ctx);
diff --git a/tests/specs/3way/audioVideoModeration.spec.ts b/tests/specs/3way/audioVideoModeration.spec.ts
index 6fb22eb93a..f2927f796e 100644
--- a/tests/specs/3way/audioVideoModeration.spec.ts
+++ b/tests/specs/3way/audioVideoModeration.spec.ts
@@ -6,7 +6,7 @@ import {
unmuteVideoAndCheck
} from '../../helpers/participants';
-describe('AVModeration -', () => {
+describe('AVModeration', () => {
it('check for moderators', async () => {
// if all 3 participants are moderators, skip this test
diff --git a/tests/specs/3way/avatars.spec.ts b/tests/specs/3way/avatars.spec.ts
index 9366f0a1f9..46c649b4bd 100644
--- a/tests/specs/3way/avatars.spec.ts
+++ b/tests/specs/3way/avatars.spec.ts
@@ -7,7 +7,7 @@ import {
const EMAIL = '[email protected]';
const HASH = '38f014e4b7dde0f64f8157d26a8c812e';
-describe('Avatar - ', () => {
+describe('Avatar', () => {
it('setup the meeting', async () => {
// Start p1
await ensureTwoParticipants(ctx, {
diff --git a/tests/specs/3way/breakoutRooms.spec.ts b/tests/specs/3way/breakoutRooms.spec.ts
index 538b3a9854..88e9f466e3 100644
--- a/tests/specs/3way/breakoutRooms.spec.ts
+++ b/tests/specs/3way/breakoutRooms.spec.ts
@@ -7,7 +7,7 @@ const MAIN_ROOM_NAME = 'Main room';
const BREAKOUT_ROOMS_LIST_ID = 'breakout-rooms-list';
const LIST_ITEM_CONTAINER = 'list-item-container';
-describe('BreakoutRooms ', () => {
+describe('BreakoutRooms', () => {
it('check support', async () => {
await ensureTwoParticipants(ctx);
diff --git a/tests/specs/3way/codecSelection.spec.ts b/tests/specs/3way/codecSelection.spec.ts
index c81f6419ca..611d79c3a0 100644
--- a/tests/specs/3way/codecSelection.spec.ts
+++ b/tests/specs/3way/codecSelection.spec.ts
@@ -1,6 +1,6 @@
import { ensureOneParticipant, ensureThreeParticipants, ensureTwoParticipants } from '../../helpers/participants';
-describe('Codec selection - ', () => {
+describe('Codec selection', () => {
it('asymmetric codecs', async () => {
await ensureOneParticipant(ctx, {
configOverwrite: {
diff --git a/tests/specs/3way/followMe.spec.ts b/tests/specs/3way/followMe.spec.ts
index 4c29a600d0..6cb2d4fdb0 100644
--- a/tests/specs/3way/followMe.spec.ts
+++ b/tests/specs/3way/followMe.spec.ts
@@ -1,6 +1,6 @@
import { ensureThreeParticipants, ensureTwoParticipants } from '../../helpers/participants';
-describe('Follow Me - ', () => {
+describe('Follow Me', () => {
it('joining the meeting', async () => {
await ensureTwoParticipants(ctx);
diff --git a/tests/specs/3way/lobby.spec.ts b/tests/specs/3way/lobby.spec.ts
new file mode 100644
index 0000000000..ffc8f3850d
--- /dev/null
+++ b/tests/specs/3way/lobby.spec.ts
@@ -0,0 +1,209 @@
+import type { Participant } from '../../helpers/Participant';
+import { ensureOneParticipant, ensureThreeParticipants, ensureTwoParticipants } from '../../helpers/participants';
+import type { IJoinOptions } from '../../helpers/types';
+import type PreMeetingScreen from '../../pageobjects/PreMeetingScreen';
+
+describe('Lobby', () => {
+ it('joining the meeting', async () => {
+ await ensureOneParticipant(ctx);
+
+ if (!await ctx.p1.driver.execute(() => APP.conference._room.isLobbySupported())) {
+ ctx.skipSuiteTests = true;
+ }
+ });
+
+ it('enable', async () => {
+ await ensureTwoParticipants(ctx);
+
+ await enableLobby();
+ });
+
+ it('entering in lobby and approve', async () => {
+ const { p1 } = ctx;
+
+ await enterLobby(p1, true);
+ });
+
+ it('entering in lobby and deny', async () => {
+ //
+ });
+
+
+ it('approve from participants pane', async () => {
+ //
+ });
+
+ it('reject from participants pane', async () => {
+ //
+ });
+
+ it('lobby user leave', async () => {
+ //
+ });
+
+ it('conference ended in lobby', async () => {
+ //
+ });
+
+ it('disable while participant in lobby', async () => {
+ //
+ });
+
+ it('change of moderators in lobby', async () => {
+ //
+ });
+
+ it('shared password', async () => {
+ //
+ });
+
+ it('enable with more than two participants', async () => {
+ //
+ });
+
+ it('moderator leaves while lobby enabled', async () => {
+ //
+ });
+
+ it('reject and approve in pre-join', async () => {
+ //
+ });
+});
+
+/**
+ * Enable lobby and check that it is enabled.
+ */
+async function enableLobby() {
+ const { p1, p2 } = ctx;
+
+ // TODO? remove
+ // we set the name so we can check it on the notifications
+ // participant1.setDisplayName(participant1.getName());
+
+ const p1SecurityDialog = p1.getSecurityDialog();
+
+ await p1.getToolbar().clickSecurityButton();
+ await p1SecurityDialog.waitForDisplay();
+
+ expect(await p1SecurityDialog.isLobbyEnabled()).toBe(false);
+
+ await p1SecurityDialog.toggleLobby();
+ await p1SecurityDialog.waitForLobbyEnabled();
+
+ expect((await p2.getNotifications().getLobbyEnabledText()).includes(p1.displayName)).toBe(true);
+
+ await p2.getNotifications().closeLobbyEnabled();
+
+ const p2SecurityDialog = p2.getSecurityDialog();
+
+ await p2.getToolbar().clickSecurityButton();
+ await p2SecurityDialog.waitForDisplay();
+
+ // lobby is visible to moderators only, this depends on whether deployment is all moderators or not
+ if (await p2.isModerator()) {
+ await p2SecurityDialog.waitForLobbyEnabled();
+ } else {
+ expect(await p2SecurityDialog.isLobbySectionPresent()).toBe(false);
+ }
+
+ // let's close the security dialog, or we will not be able to click
+ // on popups for allow/deny participants
+ await p1SecurityDialog.clickCloseButton();
+ await p2SecurityDialog.clickCloseButton();
+}
+
+/**
+ * Expects that lobby is enabled for the room we will try to join.
+ * Lobby UI is shown, enter display name and join.
+ * Checks Lobby UI and also that when joining the moderator sees corresponding notifications.
+ *
+ * @param participant The participant that is moderator in the meeting.
+ * @param enterDisplayName whether to enter display name. We need to enter display name only the first time when
+ * a participant sees the lobby screen, next time visiting the page display name will be pre-filled
+ * from local storage.
+ * @param usePreJoin
+ * @return the participant name knocking.
+ */
+async function enterLobby(participant: Participant, enterDisplayName = false, usePreJoin = false) {
+ const options: IJoinOptions = {};
+
+ if (usePreJoin) {
+ options.configOverwrite = {
+ prejoinConfig: {
+ enabled: true
+ }
+ };
+ }
+
+ await ensureThreeParticipants(ctx, {
+ ...options,
+ skipDisplayName: true,
+ skipWaitToJoin: true,
+ skipInMeetingChecks: true
+ });
+
+ const { p3 } = ctx;
+ let screen: PreMeetingScreen;
+
+ // WebParticipant participant3 = getParticipant3();
+ // ParentPreMeetingScreen lobbyScreen;
+ if (usePreJoin) {
+ screen = p3.getPreJoinScreen();
+ } else {
+ screen = p3.getLobbyScreen();
+ }
+
+ // // participant 3 should be now on pre-join screen
+ await screen.waitForLoading();
+
+ const displayNameInput = screen.getDisplayNameInput();
+
+ // check display name is visible
+ expect(await displayNameInput.isExisting()).toBe(true);
+ expect(await displayNameInput.isDisplayed()).toBe(true);
+
+ const joinButton = screen.getJoinButton();
+
+ expect(await joinButton.isExisting()).toBe(true);
+
+ if (enterDisplayName) {
+ let classes = await joinButton.getAttribute('class');
+
+ if (!usePreJoin) {
+ // check join button is disabled
+ expect(classes.includes('disabled')).toBe(true);
+ }
+
+ // TODO check that password is hidden as the room does not have password
+ // this check needs to be added once the functionality exists
+
+ // enter display name
+ await screen.enterDisplayName(p3.name);
+
+ // check join button is enabled
+ classes = await joinButton.getAttribute('class');
+ expect(classes.includes('disabled')).toBe(false);
+ }
+
+ // click join button
+ await screen.getJoinButton().click();
+ await screen.waitToJoinLobby();
+
+ // check no join button
+ expect(!await joinButton.isExisting() || !await joinButton.isDisplayed() || !await joinButton.isEnabled())
+ .toBe(true);
+
+ // new screen, is password button shown
+ const passwordButton = screen.getPasswordButton();
+
+ expect(await passwordButton.isExisting()).toBe(true);
+ expect(await passwordButton.isEnabled()).toBe(true);
+
+ // check that moderator (participant 1) sees notification about participant in lobby
+ const name = await participant.getNotifications().getKnockingParticipantName();
+
+ expect(name).toBe(p3.name);
+ expect(await screen.isLobbyRoomJoined()).toBe(true);
+
+ return name;
+}
diff --git a/tests/specs/4way/desktopSharing.spec.ts b/tests/specs/4way/desktopSharing.spec.ts
index f1665445c9..caba76cf13 100644
--- a/tests/specs/4way/desktopSharing.spec.ts
+++ b/tests/specs/4way/desktopSharing.spec.ts
@@ -7,7 +7,7 @@ import {
ensureTwoParticipants
} from '../../helpers/participants';
-describe('Desktop sharing - ', () => {
+describe('Desktop sharing', () => {
it('start', async () => {
await ensureTwoParticipants(ctx, {
configOverwrite: {
diff --git a/tests/specs/4way/lastN.spec.ts b/tests/specs/4way/lastN.spec.ts
index fcbe9649e0..96cdfdf842 100644
--- a/tests/specs/4way/lastN.spec.ts
+++ b/tests/specs/4way/lastN.spec.ts
@@ -1,6 +1,6 @@
import { ensureFourParticipants, ensureThreeParticipants, ensureTwoParticipants } from '../../helpers/participants';
-describe('lastN - ', () => {
+describe('lastN', () => {
it('joining the meeting', async () => {
await ensureTwoParticipants(ctx, {
skipInMeetingChecks: true,
diff --git a/tests/specs/alone/chatPanel.spec.ts b/tests/specs/alone/chatPanel.spec.ts
index bd4f2f6cd9..fae13da10d 100644
--- a/tests/specs/alone/chatPanel.spec.ts
+++ b/tests/specs/alone/chatPanel.spec.ts
@@ -1,6 +1,6 @@
import { ensureOneParticipant } from '../../helpers/participants';
-describe('Chat Panel - ', () => {
+describe('Chat Panel', () => {
it('join participant', async () => {
await ensureOneParticipant(ctx);
});
diff --git a/tests/specs/alone/dialInAudio.spec.ts b/tests/specs/alone/dialInAudio.spec.ts
index 2a6ecf11d5..d04dd59405 100644
--- a/tests/specs/alone/dialInAudio.spec.ts
+++ b/tests/specs/alone/dialInAudio.spec.ts
@@ -4,7 +4,7 @@ import process from 'node:process';
import { ensureOneParticipant } from '../../helpers/participants';
import { cleanup, isDialInEnabled, waitForAudioFromDialInParticipant } from '../helpers/DialIn';
-describe('Dial-In - ', () => {
+describe('Dial-In', () => {
it('join participant', async () => {
// check rest url is configured
if (!process.env.DIAL_IN_REST_URL) {
diff --git a/tests/specs/alone/invite.spec.ts b/tests/specs/alone/invite.spec.ts
index f455b9e9c9..7be67c2301 100644
--- a/tests/specs/alone/invite.spec.ts
+++ b/tests/specs/alone/invite.spec.ts
@@ -1,7 +1,7 @@
import { ensureOneParticipant } from '../../helpers/participants';
import { isDialInEnabled } from '../helpers/DialIn';
-describe('Invite - ', () => {
+describe('Invite', () => {
it('join participant', async () => {
await ensureOneParticipant(ctx);
});