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

26 lines
1.3 KiB
JavaScript
Raw Normal View History

2023-01-24 01:31:01 +08:00
const { test } = require('@playwright/test');
const { FocusOnPresentation } = require('./focusOnPresentation');
const { FocusOnVideo } = require('./focusOnVideo');
const { MultiUsers } = require('../user/multiusers');
const { encodeCustomParams } = require('../customparameters/util');
2023-03-08 23:33:05 +08:00
const { PARAMETER_HIDE_PRESENTATION_TOAST } = require('../core/constants');
const hidePresentationToast = encodeCustomParams(PARAMETER_HIDE_PRESENTATION_TOAST);
2023-01-24 01:31:01 +08:00
const CUSTOM_MEETING_ID = 'layout_management_meeting';
2023-01-24 01:31:01 +08:00
test.describe.parallel('Layout management', () => {
test('Focus on presentation', async ({ browser, context, page }) => {
const focusOnPresentation = new FocusOnPresentation(browser, context);
2023-03-08 23:33:05 +08:00
await focusOnPresentation.initModPage(page, true, { customMeetingId: CUSTOM_MEETING_ID, customParameter: hidePresentationToast });
await focusOnPresentation.initModPage2(true, context, { customParameter: hidePresentationToast });
2023-01-24 01:31:01 +08:00
await focusOnPresentation.test();
});
test('Focus on video', async ({ browser, context, page }) => {
const focusOnVideo = new FocusOnVideo(browser, context);
2023-03-08 23:33:05 +08:00
await focusOnVideo.initModPage(page, true, { customMeetingId: CUSTOM_MEETING_ID, customParameter: hidePresentationToast });
await focusOnVideo.initModPage2(true, context, { customParameter: hidePresentationToast });
2023-01-24 01:31:01 +08:00
await focusOnVideo.test();
});
});