bigbluebutton-Github/bigbluebutton-html5/tests/puppeteer/audio.test.js
2020-06-24 16:51:20 -03:00

37 lines
812 B
JavaScript

const Audio = require('./audio/audio');
const Page = require('./core/page');
describe('Audio', () => {
beforeEach(() => {
jest.setTimeout(30000);
});
test('Join audio with Listen Only', async () => {
const test = new Audio();
let response;
try {
await test.init(Page.getArgsWithAudio());
response = await test.test();
} catch (e) {
console.log(e);
} finally {
await test.close();
}
expect(response).toBe(true);
});
test('Join audio with Microphone', async () => {
const test = new Audio();
let response;
try {
await test.init(Page.getArgsWithAudio());
response = await test.microphone();
} catch (e) {
console.log(e);
} finally {
await test.close();
}
expect(response).toBe(true);
});
});