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', () => {
|
|
|
|
test('Share screen', async () => {
|
|
|
|
const test = new ShareScreen();
|
|
|
|
let response;
|
|
|
|
try {
|
|
|
|
await test.init(Page.getArgsWithVideo());
|
|
|
|
response = await test.test();
|
|
|
|
} catch (e) {
|
|
|
|
console.log(e);
|
|
|
|
} finally {
|
|
|
|
await test.close();
|
|
|
|
}
|
|
|
|
expect(response).toBe(true);
|
|
|
|
});
|
|
|
|
});
|