7280ac0177
Waiting for e.screenshareConnecting creates a race condition if the screen share connects quickly, before the test waits for the screenshareConnecting message.
15 lines
521 B
JavaScript
15 lines
521 B
JavaScript
const e = require('../core/elements');
|
|
const { VIDEO_LOADING_WAIT_TIME } = require('../core/constants');
|
|
|
|
async function startScreenshare(test) {
|
|
await test.waitAndClick(e.startScreenSharing);
|
|
await test.waitForSelector(e.screenShareVideo, VIDEO_LOADING_WAIT_TIME);
|
|
}
|
|
|
|
async function getScreenShareBreakoutContainer(test) {
|
|
await test.hasElement(e.screenShareVideo, VIDEO_LOADING_WAIT_TIME);
|
|
}
|
|
|
|
exports.getScreenShareBreakoutContainer = getScreenShareBreakoutContainer;
|
|
exports.startScreenshare = startScreenshare;
|