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
feat(tests): Adds lock room with digits only test.
damenchoc98050224cf2
diff --git a/tests/specs/alone/lockRoomDigitsOnly.spec.ts b/tests/specs/alone/lockRoomDigitsOnly.spec.tsnew file mode 100644index 0000000000..f9be1fe4ed--- /dev/null+++ b/tests/specs/alone/lockRoomDigitsOnly.spec.ts@@ -0,0 +1,46 @@+import { ensureOneParticipant } from '../../helpers/participants';++/**+ * Tests that the digits only password feature works.+ *+ * 1. Lock the room with a string (shouldn't work)+ * 2. Lock the room with a valid numeric password (should work)+ */+describe('Lock Room with Digits only', () => {+ it('join participant', () => ensureOneParticipant(ctx, {+ configOverwrite: {+ roomPasswordNumberOfDigits: 5+ }+ }));++ it('lock room with digits only', async () => {+ const { p1 } = ctx;++ expect(await p1.driver.execute(() => APP.store.getState()['features/base/config']+ .roomPasswordNumberOfDigits === 5)).toBe(true);++ const p1SecurityDialog = p1.getSecurityDialog();++ await p1.getToolbar().clickSecurityButton();+ await p1SecurityDialog.waitForDisplay();++ expect(await p1SecurityDialog.isLocked()).toBe(false);++ // Set a non-numeric password.+ await p1SecurityDialog.addPassword('AAAAA');++ expect(await p1SecurityDialog.isLocked()).toBe(false);+ await p1SecurityDialog.clickCloseButton();++ await p1.getToolbar().clickSecurityButton();+ await p1SecurityDialog.waitForDisplay();++ await p1SecurityDialog.addPassword('12345');+ await p1SecurityDialog.clickCloseButton();++ await p1.getToolbar().clickSecurityButton();+ await p1SecurityDialog.waitForDisplay();++ expect(await p1SecurityDialog.isLocked()).toBe(true);+ });+});