bigbluebutton-Github/bigbluebutton-tests/playwright/screenshare/util.js

10 lines
411 B
JavaScript
Raw Normal View History

2021-11-30 21:42:57 +08:00
const e = require('../core/elements');
const { VIDEO_LOADING_WAIT_TIME, ELEMENT_WAIT_TIME } = require('../core/constants');
2021-11-30 21:42:57 +08:00
async function startScreenshare(test) {
await test.waitAndClick(e.startScreenSharing);
await test.waitForSelector(e.screenshareConnecting, VIDEO_LOADING_WAIT_TIME);
2021-11-30 21:42:57 +08:00
await test.hasElement(e.screenShareVideo, VIDEO_LOADING_WAIT_TIME);
}
2024-04-19 22:31:59 +08:00
exports.startScreenshare = startScreenshare;