2020-03-12 21:50:54 +08:00
|
|
|
const e = require('../core/elements');
|
2021-09-23 01:17:56 +08:00
|
|
|
const { VIDEO_LOADING_WAIT_TIME } = require('../core/constants');
|
2020-03-12 21:50:54 +08:00
|
|
|
|
|
|
|
async function startScreenshare(test) {
|
2021-09-22 21:11:56 +08:00
|
|
|
await test.waitAndClick(e.startScreenSharing);
|
|
|
|
await test.waitForSelector(e.screenshareConnecting);
|
2021-03-31 21:10:57 +08:00
|
|
|
await test.waitForSelector(e.screenShareVideo, VIDEO_LOADING_WAIT_TIME);
|
|
|
|
}
|
|
|
|
|
2021-02-26 23:52:17 +08:00
|
|
|
async function getScreenShareBreakoutContainer(test) {
|
2021-09-22 21:11:56 +08:00
|
|
|
await test.waitForSelector(e.screenshareConnecting, VIDEO_LOADING_WAIT_TIME);
|
2021-09-23 04:20:02 +08:00
|
|
|
return test.hasElement(e.screenShareVideo, true, VIDEO_LOADING_WAIT_TIME);
|
2020-03-12 21:50:54 +08:00
|
|
|
}
|
|
|
|
|
2021-02-26 23:52:17 +08:00
|
|
|
exports.getScreenShareBreakoutContainer = getScreenShareBreakoutContainer;
|
2023-04-04 04:23:26 +08:00
|
|
|
exports.startScreenshare = startScreenshare;
|