Files
upstream-jitsi-meet/tests/specs/media/prejoinDisabled.spec.ts
upstream-mirror 1d2bfcac0c
Some checks failed
Prosody Plugin Tests / test (push) Failing after 10m11s
Close stale issues and PRs / stale (push) Failing after 1s
snapshot of https://github.com/jitsi/jitsi-meet.git @ fd1749dd28f4138aa80234fc7f311b19aaffa0e7 (2026-09-15)
2026-09-15 15:56:32 +05:00

45 lines
1.6 KiB
TypeScript

import type { Participant } from '../../helpers/Participant';
import { setTestProperties } from '../../helpers/TestProperties';
import { ensureTwoParticipants, hangupAllParticipants } from '../../helpers/participants';
setTestProperties(__filename, {
usesBrowsers: [ 'p1', 'p2' ]
});
describe('Prejoin disabled', () => {
it('joining with no prejoin - nested object', async () => {
await ensureTwoParticipants({
configOverwrite: {
prejoinConfig: {
enabled: false
}
},
skipInMeetingChecks: true,
});
await checkEveryoneMuted(ctx);
await hangupAllParticipants();
});
it('joining with no prejoin - direct url param ', async () => {
await ensureTwoParticipants({
skipInMeetingChecks: true,
urlAppendString: '&config.prejoinConfig.enabled=false'
});
await checkEveryoneMuted(ctx);
});
});
async function checkEveryoneMuted({ p1, p2 }: { p1: Participant; p2: Participant; }) {
await p1.getFilmstrip().assertAudioMuteIconIsDisplayed(p2);
await p1.getFilmstrip().assertAudioMuteIconIsDisplayed(p1);
await p2.getFilmstrip().assertAudioMuteIconIsDisplayed(p2);
await p2.getFilmstrip().assertAudioMuteIconIsDisplayed(p1);
await p1.getParticipantsPane().assertAudioMuteIconIsDisplayed(p2);
await p1.getParticipantsPane().assertAudioMuteIconIsDisplayed(p1);
await p2.getParticipantsPane().assertAudioMuteIconIsDisplayed(p2);
await p2.getParticipantsPane().assertAudioMuteIconIsDisplayed(p1);
}