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

34 lines
762 B
JavaScript
Raw Normal View History

2018-11-23 20:55:16 +08:00
const Page = require('./core/page');
const Status = require('./user/status');
const MultiUsers = require('./user/multiusers');
2018-11-23 20:55:16 +08:00
describe('User', () => {
2020-02-14 04:00:33 +08:00
test('Change status', async () => {
const test = new Status();
let response;
try {
await test.init(Page.getArgs());
2020-02-14 04:00:33 +08:00
response = await test.test();
} catch (e) {
console.log(e);
} finally {
await test.close();
}
expect(response).toBe(true);
});
test('Multi user presence check', async () => {
const test = new MultiUsers();
let response;
try {
await test.init();
response = await test.test();
} catch (err) {
console.log(err);
} finally {
await test.close();
}
expect(response).toBe(true);
2020-02-15 04:52:59 +08:00
});
2018-11-23 20:55:16 +08:00
});