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
test: Expect pin to have digits only, configure length. (#16670)
bgrozevd72114d5bcc3
diff --git a/tests/helpers/expectations.ts b/tests/helpers/expectations.tsindex e50811fd4d..2a95e2b635 100644--- a/tests/helpers/expectations.ts+++ b/tests/helpers/expectations.ts@@ -12,6 +12,7 @@ const defaultExpectations = {* null -> if the config is enabled, assert the UI elements are displayed and the feature works.*/enabled: null,+ minPinLength: 8},iframe: {// Whether the iframe integration is enabled (the inverse of `disableIframeAPI` from config.js)diff --git a/tests/specs/misc/dialIn.spec.ts b/tests/specs/misc/dialIn.spec.tsindex aa08da3f20..f1cb4b31a9 100644--- a/tests/specs/misc/dialIn.spec.ts+++ b/tests/specs/misc/dialIn.spec.ts@@ -92,7 +92,10 @@ describe('Dial-in', () => {throw new Error('no pin');}- expect(dialInPin.length >= 8).toBe(true);+ if (!dialInPin.match(/^[0-9]+$/)) {+ throw new Error(`The dial-in PIN contains non-digit characters: ${dialInPin}`);+ }+ expect(dialInPin.length).toBeGreaterThanOrEqual(expectations.dialIn.minPinLength);});it('skip the rest if a dial-in URL is not configured', async () => {