bigbluebutton-Github/bigbluebutton-html5/tests/puppeteer/screenshare.test.js

24 lines
537 B
JavaScript
Raw Normal View History

const ShareScreen = require('./screenshare/screenshare');
2020-03-12 21:50:54 +08:00
const Page = require('./core/page');
describe('Screen Share', () => {
2020-07-21 05:14:11 +08:00
beforeEach(() => {
jest.setTimeout(30000);
});
2020-03-12 21:50:54 +08:00
test('Share screen', async () => {
const test = new ShareScreen();
let response;
try {
await test.init(Page.getArgsWithVideo());
2020-07-21 05:14:11 +08:00
await test.closeAudioModal();
2020-03-12 21:50:54 +08:00
response = await test.test();
} catch (e) {
console.log(e);
} finally {
await test.close();
}
expect(response).toBe(true);
});
});