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

33 lines
668 B
JavaScript

const Audio = require('./audio/audio');
describe('Audio', () => {
test('Join audio', async () => {
const test = new Audio();
let response;
try {
await test.init();
response = await test.test();
} catch (e) {
console.log(e);
} finally {
await test.close();
}
expect(response).toBe(true);
});
test('Mute the other User', async () => {
const test = new Audio();
let response;
try {
await test.init();
await test.mute();
response = await test.test();
} catch (e) {
console.log(e);
} finally {
await test.close();
}
expect(response).toBe(true);
});
});