integration/js/steps/WaitForRemoteParticipantsToJoinMeeting.js (20 lines of code) (raw):

const AppWaitTestStep = require('../utils/AppWaitTestStep'); class WaitForRemoteParticipantsToJoinMeeting extends AppWaitTestStep { constructor(kiteBaseTest, sessionInfo) { super(kiteBaseTest, sessionInfo); } static async executeStep(KiteBaseTest, sessionInfo) { const step = new WaitForRemoteParticipantsToJoinMeeting(KiteBaseTest, sessionInfo); await step.execute(KiteBaseTest); } stepDescription() { return 'Waiting for other participants to join the meeting'; } waitCompleteCondition() { return this.test.numRemoteJoined.toString() === this.numberOfParticipant } waitCompleteMessage() { return "all remote participants present" } } module.exports = WaitForRemoteParticipantsToJoinMeeting;