mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 03:12:29 +00:00
16 lines
475 B
TypeScript
16 lines
475 B
TypeScript
import { expect } from '@wdio/globals';
|
|
|
|
import type { Participant } from '../../helpers/Participant';
|
|
import { expectations } from '../../helpers/expectations';
|
|
|
|
export async function checkIframeApi(p: Participant) {
|
|
const iframeEnabled = !await p.execute(() => config.disableIframeAPI);
|
|
|
|
expect(iframeEnabled).toBe(expectations.iframe.enabled);
|
|
if (!iframeEnabled) {
|
|
ctx.skipSuiteTests = 'The iFrame API is disabled';
|
|
}
|
|
|
|
return iframeEnabled;
|
|
}
|