Skip to content

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

fix: Fix invite tests.

damenchof83ad5af27b1
diff --git a/tests/helpers/participants.ts b/tests/helpers/participants.ts
index 5adc1a99f8..9fb9c76716 100644
--- a/tests/helpers/participants.ts
+++ b/tests/helpers/participants.ts
@@ -168,8 +168,8 @@ async function joinTheModeratorAsP1(ctx: IContext, options?: IJoinOptions) {
if (!options?.skipFirstModerator) {
// we prioritize the access token when iframe is not used and private key is set,
// otherwise if private key is not specified we use the access token if set
- if (process.env.JWT_ACCESS_TOKEN && (!ctx.jwtPrivateKeyPath || !ctx.iframeAPI)
- && !options?.forceGenerateToken) {
+ if (process.env.JWT_ACCESS_TOKEN && (!ctx.jwtPrivateKeyPath || !ctx.iframeAPI
+ || !options?.forceGenerateToken)) {
token = process.env.JWT_ACCESS_TOKEN;
} else if (ctx.jwtPrivateKeyPath) {
token = getModeratorToken(p1DisplayName);