bigbluebutton-Github/bigbluebutton-html5/tests/puppeteer/breakout/create.js
2020-02-21 15:06:05 -03:00

26 lines
791 B
JavaScript

const Page = require('../core/page');
const params = require('../params');
const util = require('./util');
class Create {
constructor() {
this.page1 = new Page();
this.page2 = new Page();
this.page3 = new Page();
}
// Join BigBlueButton meeting
async init(meetingId) {
await this.page1.init(Page.getArgs(), meetingId, { ...params, fullName: 'Moderator1' });
await this.page2.init(Page.getArgs(), this.page1.meetingId, { ...params, fullName: 'Viewer1', moderatorPW: '' });
await util.waitForBreakoutElements(this.page1);
await util.createBreakoutRooms(this.page1, this.page2);
}
async joinWithUser2() {
await this.page3.init(Page.getArgs(), this.page1.meetingId, { ...params, fullName: 'Moderator2' });
}
}
module.exports = exports = Create;