d30b806b47
* test: fix shortcuts, add flaky flag for test requiring graphql data, fix slide change for tldraw v2 * test: properly set the execution mode * test: use isMultiUser parameter inside options obj * test: fix banner color test * test: increase breakout test timeouts for user joining room * test: redo the change in the hide presentation on join test * test: change hide presentation steps and add flaky flag on it
40 lines
1.3 KiB
JavaScript
40 lines
1.3 KiB
JavaScript
const { test } = require('@playwright/test');
|
|
const { fullyParallel } = require('../playwright.config');
|
|
const { encodeCustomParams } = require('../parameters/util');
|
|
const { PARAMETER_HIDE_PRESENTATION_TOAST } = require('../core/constants');
|
|
const { Layouts } = require('./layouts');
|
|
const { initializePages } = require('../core/helpers');
|
|
|
|
const hidePresentationToast = encodeCustomParams(PARAMETER_HIDE_PRESENTATION_TOAST);
|
|
|
|
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();
|
|
});
|
|
|
|
test("Focus on presentation", async () => {
|
|
await layouts.focusOnPresentation();
|
|
});
|
|
|
|
test("Grid Layout", async () => {
|
|
await layouts.gridLayout();
|
|
});
|
|
|
|
test("Smart layout", async () => {
|
|
await layouts.smartLayout();
|
|
});
|
|
|
|
test("Custom layout", async () => {
|
|
await layouts.customLayout();
|
|
});
|
|
|
|
test("Update everyone's layout", async () => {
|
|
await layouts.updateEveryone();
|
|
});
|
|
});
|