Skip to content

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

feat(tests): Adds dialIn expectation to disable more numbers page. (#17109)

Дамян Минков6aba2317833e
diff --git a/tests/helpers/expectations.ts b/tests/helpers/expectations.ts
index 40957f0eac..a382da7e02 100644
--- a/tests/helpers/expectations.ts
+++ b/tests/helpers/expectations.ts
@@ -12,7 +12,10 @@ const defaultExpectations = {
* null -> if the config is enabled, assert the UI elements are displayed and the feature works.
*/
enabled: null,
- minPinLength: 8
+ minPinLength: 8,
+ /* Whether to verify that the "more numbers" page is displayed. Note that only the positive verification is
+ performed: when set to 'false' we do not assert that the "more numbers" page is not displayed. */
+ moreNumbersPage: true
},
iframe: {
// Whether the iframe integration is enabled (the inverse of `disableIframeAPI` from config.js)
diff --git a/tests/specs/jaas/dial/dialin.spec.ts b/tests/specs/jaas/dial/dialin.spec.ts
index 380c429091..9a2e54b960 100644
--- a/tests/specs/jaas/dial/dialin.spec.ts
+++ b/tests/specs/jaas/dial/dialin.spec.ts
@@ -48,7 +48,7 @@ describe('Dial-in', () => {
if (expectations.dialIn.enabled !== null) {
await assertDialInDisplayed(p1, expectations.dialIn.enabled);
}
- if (expectations.dialIn.enabled === true) {
+ if (expectations.dialIn.moreNumbersPage) {
// TODO: assert the page is NOT shown when the expectation is false.
await verifyMoreNumbersPage(p1);
}
diff --git a/tests/specs/misc/dialIn.spec.ts b/tests/specs/misc/dialIn.spec.ts
index f1cb4b31a9..37cb36843a 100644
--- a/tests/specs/misc/dialIn.spec.ts
+++ b/tests/specs/misc/dialIn.spec.ts
@@ -72,7 +72,9 @@ describe('Dial-in', () => {
it('view more numbers page', async () => {
- await verifyMoreNumbersPage(ctx.p1);
+ if (expectations.dialIn.moreNumbersPage) {
+ await verifyMoreNumbersPage(ctx.p1);
+ }
});
it('retrieve pin', async () => {