25 lines
760 B
JavaScript
25 lines
760 B
JavaScript
const { MultiUsers } = require('../user/multiusers');
|
|
const e = require('../core/elements');
|
|
const { ELEMENT_WAIT_LONGER_TIME } = require('../core/constants');
|
|
|
|
class Create extends MultiUsers {
|
|
constructor(browser, context) {
|
|
super(browser, context);
|
|
}
|
|
|
|
// Create Breakoutrooms
|
|
async create() {
|
|
await this.modPage.waitAndClick(e.manageUsers);
|
|
await this.modPage.waitAndClick(e.createBreakoutRooms);
|
|
|
|
await this.modPage.waitAndClick(e.randomlyAssign);
|
|
await this.modPage.waitAndClick(e.modalConfirmButton, ELEMENT_WAIT_LONGER_TIME);
|
|
|
|
await this.userPage.hasElement(e.modalConfirmButton);
|
|
await this.userPage.waitAndClick(e.closeModal);
|
|
await this.modPage.hasElement(e.breakoutRoomsItem);
|
|
}
|
|
}
|
|
|
|
exports.Create = Create;
|