2020-03-14 04:45:05 +08:00
|
|
|
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);
|
|
|
|
});
|
|
|
|
});
|