diff --git a/tests/helpers/Participant.ts b/tests/helpers/Participant.ts index 9e18ea24382e..223403de1a56 100644 --- a/tests/helpers/Participant.ts +++ b/tests/helpers/Participant.ts @@ -1,6 +1,7 @@ /* global APP $ */ import { multiremotebrowser } from '@wdio/globals'; +import assert from 'assert'; import { Key } from 'webdriverio'; import { IConfig } from '../../react/features/base/config/configType'; @@ -10,6 +11,7 @@ import ChatPanel from '../pageobjects/ChatPanel'; import Filmstrip from '../pageobjects/Filmstrip'; import IframeAPI from '../pageobjects/IframeAPI'; import InviteDialog from '../pageobjects/InviteDialog'; +import LargeVideo from '../pageobjects/LargeVideo'; import LobbyScreen from '../pageobjects/LobbyScreen'; import Notifications from '../pageobjects/Notifications'; import ParticipantsPane from '../pageobjects/ParticipantsPane'; @@ -27,6 +29,13 @@ export const P2_DISPLAY_NAME = 'p2'; export const P3_DISPLAY_NAME = 'p3'; export const P4_DISPLAY_NAME = 'p4'; +interface IWaitForSendReceiveDataOptions { + checkReceive?: boolean; + checkSend?: boolean; + msg?: string; + timeout?: number; +} + /** * Participant. */ @@ -91,7 +100,7 @@ export class Participant { async getEndpointId(): Promise { if (!this._endpointId) { this._endpointId = await this.driver.execute(() => { // eslint-disable-line arrow-body-style - return APP.conference.getMyUserId(); + return APP?.conference?.getMyUserId(); }); } @@ -209,7 +218,7 @@ export class Participant { const parallel = []; parallel.push(driver.execute((name, sessionId, prefix) => { - APP.UI.dockToolbar(true); + APP?.UI?.dockToolbar(true); // disable keyframe animations (.fadeIn and .fadeOut classes) $('