2021-11-23 01:06:59 +08:00
|
|
|
const { test } = require('@playwright/test');
|
2022-07-16 04:54:16 +08:00
|
|
|
const { MultiUsers } = require('../user/multiusers');
|
2021-12-02 12:12:14 +08:00
|
|
|
const { Audio } = require('./audio');
|
2021-11-23 01:06:59 +08:00
|
|
|
|
|
|
|
test.describe.parallel('Audio', () => {
|
2022-06-08 02:52:22 +08:00
|
|
|
test('Join audio with Listen Only @ci', async ({ browser, page }) => {
|
2021-11-23 01:06:59 +08:00
|
|
|
const audio = new Audio(browser, page);
|
|
|
|
await audio.init(true, false);
|
|
|
|
await audio.joinAudio();
|
|
|
|
});
|
|
|
|
|
2022-06-08 02:52:22 +08:00
|
|
|
test('Join audio with Microphone @ci', async ({ browser, page }) => {
|
2021-11-23 01:06:59 +08:00
|
|
|
const audio = new Audio(browser, page);
|
|
|
|
await audio.init(true, false);
|
|
|
|
await audio.joinMicrophone();
|
|
|
|
});
|
2022-07-16 04:54:16 +08:00
|
|
|
|
2022-07-26 01:38:33 +08:00
|
|
|
// https://docs.bigbluebutton.org/2.6/release-tests.html#muteunmute
|
2022-07-16 04:54:16 +08:00
|
|
|
test('Mute youself by clicking the mute button @ci', async ({ browser, page }) => {
|
|
|
|
const audio = new Audio(browser, page);
|
|
|
|
await audio.init(true, false);
|
|
|
|
await audio.muteYourselfByButton();
|
|
|
|
});
|
|
|
|
|
2022-07-26 01:38:33 +08:00
|
|
|
// https://docs.bigbluebutton.org/2.6/release-tests.html#choosing-different-sources
|
2022-07-16 04:54:16 +08:00
|
|
|
test('Change audio input and keep it connected', async ({ browser, page }) => {
|
|
|
|
const audio = new Audio(browser, page);
|
|
|
|
await audio.init(true, false);
|
|
|
|
await audio.changeAudioInput();
|
|
|
|
});
|
|
|
|
|
|
|
|
test('Keep the last mute state after rejoining audio @ci', async ({ browser, page }) => {
|
|
|
|
const audio = new Audio(browser, page);
|
|
|
|
await audio.init(true, false);
|
|
|
|
await audio.keepMuteStateOnRejoin();
|
|
|
|
});
|
|
|
|
|
|
|
|
test.describe.parallel('Talking indicator @ci', () => {
|
2022-07-26 01:38:33 +08:00
|
|
|
// https://docs.bigbluebutton.org/2.6/release-tests.html#talking-indicator
|
2022-07-16 04:54:16 +08:00
|
|
|
test('Mute youself by clicking the talking indicator', async ({ browser, page }) => {
|
|
|
|
const audio = new Audio(browser, page);
|
|
|
|
await audio.init(true, false);
|
|
|
|
await audio.muteYourselfBytalkingIndicator();
|
|
|
|
});
|
|
|
|
|
2022-07-26 01:38:33 +08:00
|
|
|
// https://docs.bigbluebutton.org/2.6/release-tests.html#talking-indicator
|
2022-07-16 04:54:16 +08:00
|
|
|
test('Mute another user by clicking the talking indicator', async ({ browser, context, page }) => {
|
|
|
|
const audio = new MultiUsers(browser, context);
|
|
|
|
await audio.initModPage(page);
|
|
|
|
await audio.initUserPage(false);
|
|
|
|
await audio.muteAnotherUser();
|
|
|
|
});
|
|
|
|
});
|
2021-12-04 01:01:36 +08:00
|
|
|
});
|