bigbluebutton-Github/bigbluebutton-html5/tests/puppeteer/screenshare.test.js
2020-07-20 18:14:11 -03:00

24 lines
537 B
JavaScript

const ShareScreen = require('./screenshare/screenshare');
const Page = require('./core/page');
describe('Screen Share', () => {
beforeEach(() => {
jest.setTimeout(30000);
});
test('Share screen', async () => {
const test = new ShareScreen();
let response;
try {
await test.init(Page.getArgsWithVideo());
await test.closeAudioModal();
response = await test.test();
} catch (e) {
console.log(e);
} finally {
await test.close();
}
expect(response).toBe(true);
});
});