bigbluebutton-Github/bigbluebutton-html5/tests/puppeteer/webcam/share.js

20 lines
491 B
JavaScript
Raw Normal View History

2020-03-05 03:00:45 +08:00
const Page = require('../core/page');
const util = require('./util');
const we = require('./elements');
class Share extends Page {
constructor() {
super('share-webcam');
}
async test() {
await util.enableWebcam(this.page);
await this.waitForSelector(we.videoContainer);
const videoContainer = await this.page.evaluate(util.getTestElement, we.videoContainer);
const response = videoContainer !== null;
return response;
}
}
module.exports = exports = Share;