bigbluebutton-Github/bigbluebutton-tests/playwright/screenshare/util.js
Brent Baccala 7280ac0177 Don't wait for screenshareConnecting
Waiting for e.screenshareConnecting creates a race condition if the
screen share connects quickly, before the test waits for the
screenshareConnecting message.
2022-07-22 19:51:33 -04:00

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;