2021-09-22 11:51:29 +08:00
|
|
|
const e = require('../core/elements');
|
2021-02-17 04:57:10 +08:00
|
|
|
const { ELEMENT_WAIT_TIME } = require('../core/constants'); // core constants (Timeouts vars imported)
|
2020-02-22 02:06:05 +08:00
|
|
|
|
|
|
|
async function createBreakoutRooms(page1, page2) {
|
2020-06-30 09:25:04 +08:00
|
|
|
await page1.click(e.manageUsers, true);
|
|
|
|
await page1.click(e.createBreakoutRooms, true);
|
2021-02-17 04:57:10 +08:00
|
|
|
await page1.waitForSelector(e.randomlyAssign, ELEMENT_WAIT_TIME);
|
2020-06-30 09:25:04 +08:00
|
|
|
await page1.click(e.randomlyAssign, true);
|
2021-02-17 04:57:10 +08:00
|
|
|
await page1.waitForSelector(e.modalConfirmButton, ELEMENT_WAIT_TIME);
|
2020-06-30 09:25:04 +08:00
|
|
|
await page1.click(e.modalConfirmButton, true);
|
2021-02-17 04:57:10 +08:00
|
|
|
await page2.waitForSelector(e.modalConfirmButton, ELEMENT_WAIT_TIME);
|
2020-06-30 09:25:04 +08:00
|
|
|
await page2.click(e.modalConfirmButton, true);
|
2020-02-22 02:06:05 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
exports.createBreakoutRooms = createBreakoutRooms;
|