bigbluebutton-Github/bigbluebutton-tests/playwright/webcam/webcam.spec.js

65 lines
2.1 KiB
JavaScript
Raw Normal View History

2021-11-27 04:01:41 +08:00
const { test } = require('@playwright/test');
const { MultiUsers } = require('../user/multiusers');
const { Webcam } = require('./webcam');
2021-11-27 04:01:41 +08:00
2022-06-08 02:52:22 +08:00
test.describe.parallel('Webcam @ci', () => {
2022-07-26 03:42:48 +08:00
// https://docs.bigbluebutton.org/2.6/release-tests.html#joining-webcam-automated
test('Shares webcam', async ({ browser, page }) => {
const webcam = new Webcam(browser, page);
await webcam.init(true, true);
await webcam.share();
2021-11-27 04:01:41 +08:00
});
test('Checks content of webcam', async ({ browser, page }) => {
const webcam = new Webcam(browser, page);
await webcam.init(true, true);
await webcam.checksContent();
2021-11-27 04:01:41 +08:00
});
test('Webcam talking indicator @ci', async ({ browser, page }) => {
const webcam = new Webcam(browser, page);
await webcam.init(true, false);
await webcam.talkingIndicator();
2021-11-27 04:01:41 +08:00
});
test('Pinning and unpinning webcams @ci', async ({ browser, context, page }) => {
const webcam = new MultiUsers(browser, context);
await webcam.initModPage(page);
await webcam.initUserPage();
await webcam.initModPage2();
await webcam.pinningWebcams();
});
test('Change video quality', async ({ browser, page }) => {
const webcam = new Webcam(browser, page);
await webcam.init(true, true);
await webcam.changeVideoQuality();
});
2023-03-30 00:49:22 +08:00
test('Webcam fullscreen', async ({ browser, page }) => {
const webcam = new Webcam(browser, page);
await webcam.init(true, true);
await webcam.webcamFullscreen();
});
test.describe('Webcam background', () => {
test('Select one of the default backgrounds @ci', async ({ browser, page }) => {
const webcam = new Webcam(browser, page);
await webcam.init(true, true);
await webcam.applyBackground();
});
test('Managing new background @flaky', async ({ browser, page }) => {
const webcam = new Webcam(browser, page);
await webcam.init(true, true);
await webcam.managingNewBackground();
});
test('Keep background when rejoin @ci', async ({ browser, context, page }) => {
const webcam = new Webcam(browser, page);
await webcam.init(true, true);
2023-03-30 00:56:53 +08:00
await webcam.keepBackgroundWhenRejoin(context);
});
});
2021-12-04 01:01:36 +08:00
});