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

40 lines
1.3 KiB
JavaScript
Raw Normal View History

2023-01-24 01:31:01 +08:00
const { test } = require('@playwright/test');
const { fullyParallel } = require('../playwright.config');
2023-07-08 01:05:06 +08:00
const { encodeCustomParams } = require('../parameters/util');
2023-03-08 23:33:05 +08:00
const { PARAMETER_HIDE_PRESENTATION_TOAST } = require('../core/constants');
const { Layouts } = require('./layouts');
const { initializePages } = require('../core/helpers');
2023-03-08 23:33:05 +08:00
const hidePresentationToast = encodeCustomParams(PARAMETER_HIDE_PRESENTATION_TOAST);
2023-01-24 01:31:01 +08:00
test.describe("Layout management", () => {
const layouts = new Layouts();
test.describe.configure({ mode: fullyParallel ? 'parallel' : 'serial' });
test[fullyParallel ? 'beforeEach' : 'beforeAll'](async ({ browser }) => {
await initializePages(layouts, browser, true, { isMultiUser: true, createParameter: hidePresentationToast });
await layouts.modPage.shareWebcam();
await layouts.userPage.shareWebcam();
});
2023-07-11 03:28:00 +08:00
test("Focus on presentation", async () => {
await layouts.focusOnPresentation();
2023-01-24 01:31:01 +08:00
});
test("Grid Layout", async () => {
await layouts.gridLayout();
2023-01-24 01:31:01 +08:00
});
2023-07-11 03:28:00 +08:00
test("Smart layout", async () => {
await layouts.smartLayout();
});
2023-07-11 03:28:00 +08:00
test("Custom layout", async () => {
await layouts.customLayout();
});
2023-07-11 03:28:00 +08:00
test("Update everyone's layout", async () => {
await layouts.updateEveryone();
});
2023-01-24 01:31:01 +08:00
});