10 lines
411 B
JavaScript
10 lines
411 B
JavaScript
const e = require('../core/elements');
|
|
const { VIDEO_LOADING_WAIT_TIME, ELEMENT_WAIT_TIME } = require('../core/constants');
|
|
|
|
async function startScreenshare(test) {
|
|
await test.waitAndClick(e.startScreenSharing);
|
|
await test.waitForSelector(e.screenshareConnecting, VIDEO_LOADING_WAIT_TIME);
|
|
await test.hasElement(e.screenShareVideo, VIDEO_LOADING_WAIT_TIME);
|
|
}
|
|
|
|
exports.startScreenshare = startScreenshare; |