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.modalDismissButton); await this.modPage.hasElement(e.breakoutRoomsItem); } } exports.Create = Create;