mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
* Add a requireWebhooksProxy test property. * test: Make the jaas dial-in test use but not require WH proxy.
26 lines
1.0 KiB
TypeScript
26 lines
1.0 KiB
TypeScript
import { setTestProperties } from '../../helpers/TestProperties';
|
|
import { joinJaasMuc, generateJaasToken as t } from '../../helpers/jaas';
|
|
|
|
setTestProperties(__filename, {
|
|
requireWebhookProxy: true,
|
|
useJaas: true
|
|
});
|
|
|
|
// This test is separate from passcode.spec.ts, because it needs to use a different room name, and webhooksProxy is only
|
|
// setup for the default room name.
|
|
describe('Setting invalid passcode through settings provisioning', () => {
|
|
it('With an invalid passcode', async () => {
|
|
ctx.webhooksProxy.defaultMeetingSettings = {
|
|
passcode: 'passcode-must-be-digits-only'
|
|
};
|
|
|
|
const p = await joinJaasMuc({ token: t({ room: ctx.roomName }) }, { roomName: ctx.roomName });
|
|
|
|
// The settings provisioning contains an invalid passcode, the expected result is that the room is not
|
|
// configured to require a passcode.
|
|
await p.waitToJoinMUC();
|
|
expect(await p.isInMuc()).toBe(true);
|
|
expect(await p.getPasswordDialog().isOpen()).toBe(false);
|
|
});
|
|
});
|