mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
* ref: Don't use global context for local state. * ref: Don't use global context to store the pin. * feat: Add a test for setting passcode via settings provisioning. * Use local state. * Remove "data" from context. * ref: Rename a function. * test: Fail quick when join muc fails, assert specific errors (e.g. "token expired").
76 lines
1.9 KiB
TypeScript
76 lines
1.9 KiB
TypeScript
import { IConfig } from '../../react/features/base/config/configType';
|
|
|
|
import type { Participant } from './Participant';
|
|
import { ITestProperties } from './TestProperties';
|
|
import type WebhookProxy from './WebhookProxy';
|
|
import { ITokenOptions } from './token';
|
|
|
|
export type IContext = {
|
|
/**
|
|
* Whether the configuration specifies a JaaS account for the iFrame API tests.
|
|
*/
|
|
iFrameUsesJaas: boolean;
|
|
jwtKid: string;
|
|
jwtPrivateKeyPath: string;
|
|
keepAlive: Array<any>;
|
|
p1: Participant;
|
|
p2: Participant;
|
|
p3: Participant;
|
|
p4: Participant;
|
|
roomName: string;
|
|
skipSuiteTests: boolean;
|
|
testProperties: ITestProperties;
|
|
times: any;
|
|
webhooksProxy: WebhookProxy;
|
|
};
|
|
|
|
export type IJoinOptions = {
|
|
|
|
/**
|
|
* Overwrites the base url set in the config.
|
|
*/
|
|
baseUrl?: string;
|
|
|
|
/**
|
|
* Config overwrites to use.
|
|
*/
|
|
configOverwrite?: IConfig;
|
|
|
|
/**
|
|
* The display name to use.
|
|
*/
|
|
displayName?: string;
|
|
|
|
/**
|
|
* When joining the first participant and jwt singing material is available and a provided token
|
|
* is available, prefer generating a new token for the first participant.
|
|
*/
|
|
preferGenerateToken?: boolean;
|
|
|
|
/**
|
|
* Whether to skip setting display name.
|
|
*/
|
|
skipDisplayName?: boolean;
|
|
|
|
/**
|
|
* Whether to skip setting the moderator role for the first participant (whether to use jwt for it).
|
|
*/
|
|
skipFirstModerator?: boolean;
|
|
|
|
/**
|
|
* Whether to skip in meeting checks like ice connected and send receive data. For single in meeting participant.
|
|
*/
|
|
skipInMeetingChecks?: boolean;
|
|
|
|
/**
|
|
* Whether to skip waiting for the participant to join the room. Cases like lobby where we do not succeed to join
|
|
* based on the logic of the test.
|
|
*/
|
|
skipWaitToJoin?: boolean;
|
|
|
|
/**
|
|
* Options used when generating a token.
|
|
*/
|
|
tokenOptions?: ITokenOptions;
|
|
};
|