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

527 lines
26 KiB
JavaScript
Raw Normal View History

2021-12-15 01:10:44 +08:00
const { test } = require('@playwright/test');
const { CustomParameters } = require('./customparameters');
const { DisabledFeatures } = require('./disabledFeatures');
2021-12-15 01:10:44 +08:00
const c = require('./constants');
const { encodeCustomParams, getAllShortcutParams, hexToRgb } = require('./util');
const { CreateParameters } = require('./createParameters');
2023-08-05 03:47:23 +08:00
const { linkIssue } = require('../core/helpers');
2021-12-15 01:10:44 +08:00
test.describe.parallel('Create Parameters', () => {
test('Record Meeting', async ({ browser, context, page }) => {
const createParam = new CreateParameters(browser, context);
2023-07-31 22:24:25 +08:00
await createParam.initModPage(page, true, { createParameter: c.recordMeeting });
await createParam.recordMeeting();
});
test.describe.parallel('Banner', () => {
test('Banner Text @ci', async ({ browser, context, page }) => {
const createParam = new CreateParameters(browser, context);
2023-07-31 22:24:25 +08:00
await createParam.initModPage(page, true, { createParameter: encodeCustomParams(c.bannerText) });
await createParam.bannerText();
});
test('Banner Color @ci', async ({ browser, context, page }) => {
const createParam = new CreateParameters(browser, context);
const colorToRGB = hexToRgb(c.color);
2023-07-31 22:24:25 +08:00
await createParam.initModPage(page, true, { createParameter: `${c.bannerColor}&${encodeCustomParams(c.bannerText)}` });
await createParam.bannerColor(colorToRGB);
});
});
test('Max Participants', async ({ browser, context, page }) => {
const createParam = new CreateParameters(browser, context);
2023-07-31 22:24:25 +08:00
await createParam.initModPage(page, true, { createParameter: c.maxParticipants });
await createParam.initModPage2(true, context);
await createParam.maxParticipants(context);
});
test('Meeting Duration', async ({ browser, context, page }) => {
const createParam = new CreateParameters(browser, context);
2023-07-31 22:24:25 +08:00
await createParam.initModPage(page, true, { createParameter: c.duration });
await createParam.duration();
});
test('Message Only To Moderators', async ({ browser, context, page }) => {
const createParam = new CreateParameters(browser, context);
2023-07-31 22:24:25 +08:00
await createParam.initModPage(page, true, { createParameter: c.moderatorOnlyMessage });
await createParam.moderatorOnlyMessage(context);
});
test('Webcams Shows Only For Moderators', async ({ browser, context, page }) => {
const createParam = new CreateParameters(browser, context);
2023-07-31 22:24:25 +08:00
await createParam.initModPage(page, true, { createParameter: c.webcamsOnlyForModerator });
await createParam.initUserPage2(true, context);
await createParam.webcamsOnlyForModerator(context);
});
test('Mute On Start', async ({ browser, context, page }) => {
const createParam = new CreateParameters(browser, context);
2023-07-31 22:24:25 +08:00
await createParam.initModPage(page, true, { createParameter: c.muteOnStart });
await createParam.muteOnStart();
});
test('Allow Mods To Unmute Users', async ({ browser, context, page }) => {
const createParam = new CreateParameters(browser, context);
2023-07-31 22:24:25 +08:00
await createParam.initModPage(page, true, { createParameter: c.allowModsToUnmuteUsers });
await createParam.allowModsToUnmuteUsers(context);
});
test('Lock Settings Disable Webcam', async ({ browser, context, page }) => {
const createParam = new CreateParameters(browser, context);
2023-07-31 22:24:25 +08:00
await createParam.initModPage(page, true, { createParameter: c.lockSettingsDisableCam });
await createParam.initUserPage(true, context);
await createParam.lockSettingsDisableCam();
});
test('Lock Settings Disable Microphone', async ({ browser, context, page }) => {
const createParam = new CreateParameters(browser, context);
2023-07-31 22:24:25 +08:00
await createParam.initModPage(page, true, { createParameter: c.lockSettingsDisableMic });
await createParam.initUserPage(false, context);
await createParam.lockSettingsDisableMic();
});
test('Lock Settings Disable Public Chat', async ({ browser, context, page }) => {
const createParam = new CreateParameters(browser, context);
2023-07-31 22:24:25 +08:00
await createParam.initModPage(page, true, { createParameter: c.lockSettingsDisablePublicChat });
await createParam.initUserPage(true, context);
await createParam.lockSettingsDisablePublicChat();
});
test('Lock Settings Hide User List', async ({ browser, context, page }) => {
const createParam = new CreateParameters(browser, context);
2023-07-31 22:24:25 +08:00
await createParam.initModPage(page, true, { createParameter: c.lockSettingsHideUserList });
await createParam.initUserPage(true, context);
await createParam.initUserPage2(true, context);
await createParam.lockSettingsHideUserList();
});
test('Allow Moderator To Eject Cameras', async ({ browser, context, page }) => {
const createParam = new CreateParameters(browser, context);
2023-07-31 22:24:25 +08:00
await createParam.initModPage(page, true, { createParameter: c.allowModsToEjectCameras });
await createParam.initUserPage(true, context);
await createParam.allowModsToEjectCameras();
});
2023-02-22 02:28:53 +08:00
2023-06-08 21:44:03 +08:00
test.describe.parallel('Disabled Features @ci', () => {
test.describe.serial(() => {
test('Breakout rooms', async ({ browser, context, page}) => {
const disabledFeatures = new DisabledFeatures(browser, context);
2023-07-31 22:24:25 +08:00
await disabledFeatures.initModPage(page, true, { createParameter: c.breakoutRoomsDisabled });
await disabledFeatures.breakoutRooms();
});
test('Breakout rooms (exclude)', async ({ browser, context, page}) => {
const disabledFeatures = new DisabledFeatures(browser, context);
2023-07-31 22:24:25 +08:00
await disabledFeatures.initModPage(page, true, { createParameter: c.breakoutRoomsExclude });
await disabledFeatures.breakoutRoomsExclude();
});
});
test.describe.serial(() => {
2023-06-14 04:31:47 +08:00
test('Speech Recognition', async ({ browser, context, page}) => {
const disabledFeatures = new DisabledFeatures(browser, context);
2023-07-31 22:24:25 +08:00
await disabledFeatures.initModPage(page, false, { createParameter: c.speechRecognitionDisabled });
await disabledFeatures.speechRecognition();
});
2023-06-14 04:31:47 +08:00
test('Speech Recognition (exclude)', async ({ browser, context, page}) => {
const disabledFeatures = new DisabledFeatures(browser, context);
2023-07-31 22:24:25 +08:00
await disabledFeatures.initModPage(page, false, { createParameter: c.speechRecognitionExclude });
await disabledFeatures.speechRecognitionExclude();
});
});
test.describe.serial(() => {
test('Captions', async ({ browser, context, page }) => {
const disabledFeatures = new DisabledFeatures(browser, context);
2023-07-31 22:24:25 +08:00
await disabledFeatures.initModPage(page, true, { createParameter: c.captionsDisabled });
await disabledFeatures.captions();
});
test('Captions (exclude)', async ({ browser, context, page }) => {
const disabledFeatures = new DisabledFeatures(browser, context);
2023-07-31 22:24:25 +08:00
await disabledFeatures.initModPage(page, true, { createParameter: c.captionsExclude });
await disabledFeatures.captionsExclude();
});
});
test.describe.serial(() => {
test('Chat', async ({ browser, context, page }) => {
const disabledFeatures = new DisabledFeatures(browser, context);
2023-07-31 22:24:25 +08:00
await disabledFeatures.initModPage(page, true, { createParameter: c.chatDisabled });
await disabledFeatures.chat();
});
test('Chat (exclude) @flaky', async ({ browser, context, page }) => {
const disabledFeatures = new DisabledFeatures(browser, context);
2023-07-31 22:24:25 +08:00
await disabledFeatures.initModPage(page, true, { createParameter: c.chatExclude });
await disabledFeatures.chatExclude();
});
});
test.describe.serial(() => {
test('External Videos', async ({ browser, context, page }) => {
const disabledFeatures = new DisabledFeatures(browser, context);
2023-07-31 22:24:25 +08:00
await disabledFeatures.initModPage(page, true, { createParameter: c.externalVideosDisabled });
await disabledFeatures.externalVideos();
});
test('External Videos (exclude)', async ({ browser, context, page }) => {
const disabledFeatures = new DisabledFeatures(browser, context);
2023-07-31 22:24:25 +08:00
await disabledFeatures.initModPage(page, true, { createParameter: c.externalVideosExclude });
await disabledFeatures.externalVideosExclude();
});
});
test.describe.serial(() => {
test('Layouts', async ({ browser, context, page }) => {
const disabledFeatures = new DisabledFeatures(browser, context);
2023-07-31 22:24:25 +08:00
await disabledFeatures.initModPage(page, true, { createParameter: c.layoutsDisabled });
await disabledFeatures.layouts();
});
test('Layouts (exclude)', async ({ browser, context, page }) => {
const disabledFeatures = new DisabledFeatures(browser, context);
2023-07-31 22:24:25 +08:00
await disabledFeatures.initModPage(page, true, { createParameter: c.layoutsExclude });
await disabledFeatures.layoutsExclude();
});
});
test.describe.serial(() => {
test('Learning Dashboard', async ({ browser, context, page }) => {
const disabledFeatures = new DisabledFeatures(browser, context);
2023-07-31 22:24:25 +08:00
await disabledFeatures.initModPage(page, true, { createParameter: c.learningDashboardDisabled });
await disabledFeatures.learningDashboard();
});
test('Learning Dashboard (exclude)', async ({ browser, context, page }) => {
const disabledFeatures = new DisabledFeatures(browser, context);
2023-07-31 22:24:25 +08:00
await disabledFeatures.initModPage(page, true, { createParameter: c.learningDashboardExclude });
await disabledFeatures.learningDashboardExclude();
});
});
test.describe.serial(() => {
test('Polls', async ({ browser, context, page }) => {
const disabledFeatures = new DisabledFeatures(browser, context);
2023-07-31 22:24:25 +08:00
await disabledFeatures.initModPage(page, true, { createParameter: c.pollsDisabled });
await disabledFeatures.polls();
});
test('Polls (exclude)', async ({ browser, context, page }) => {
const disabledFeatures = new DisabledFeatures(browser, context);
2023-07-31 22:24:25 +08:00
await disabledFeatures.initModPage(page, true, { createParameter: c.pollsExclude });
await disabledFeatures.pollsExclude();
});
});
test.describe.serial(() => {
test('Screenshare', async ({ browser, context, page }) => {
const disabledFeatures = new DisabledFeatures(browser, context);
2023-07-31 22:24:25 +08:00
await disabledFeatures.initModPage(page, true, { createParameter: c.screenshareDisabled });
await disabledFeatures.screenshare();
});
test('Screenshare (exclude)', async ({ browser, context, page }) => {
const disabledFeatures = new DisabledFeatures(browser, context);
2023-07-31 22:24:25 +08:00
await disabledFeatures.initModPage(page, true, { createParameter: c.screenshareExclude });
await disabledFeatures.screenshareExclude();
});
});
test.describe.serial(() => {
test('Shared Notes', async ({ browser, context, page }) => {
const disabledFeatures = new DisabledFeatures(browser, context);
2023-07-31 22:24:25 +08:00
await disabledFeatures.initModPage(page, true, { createParameter: c.sharedNotesDisabled });
await disabledFeatures.sharedNotes();
});
test('Shared Notes (exclude)', async ({ browser, context, page }) => {
const disabledFeatures = new DisabledFeatures(browser, context);
2023-07-31 22:24:25 +08:00
await disabledFeatures.initModPage(page, true, { createParameter: c.sharedNotesExclude });
await disabledFeatures.sharedNotesExclude();
});
});
test.describe.serial(() => {
test('Virtual Background', async ({ browser, context, page }) => {
const disabledFeatures = new DisabledFeatures(browser, context);
2023-07-31 22:24:25 +08:00
await disabledFeatures.initModPage(page, true, { createParameter: c.virtualBackgroundsDisabled });
await disabledFeatures.virtualBackgrounds();
});
test('Virtual Background (exclude)', async ({ browser, context, page }) => {
const disabledFeatures = new DisabledFeatures(browser, context);
2023-07-31 22:24:25 +08:00
await disabledFeatures.initModPage(page, true, { createParameter: c.virtualBackgroundsExclude });
await disabledFeatures.virtualBackgroundsExclude();
});
});
test.describe.serial(() => {
test('Download Presentation With Annotations', async ({ browser, context, page }) => {
const disabledFeatures = new DisabledFeatures(browser, context);
2023-07-31 22:24:25 +08:00
await disabledFeatures.initModPage(page, true, { createParameter: c.downloadPresentationWithAnnotationsDisabled });
await disabledFeatures.downloadPresentationWithAnnotations();
});
test('Download Presentation With Annotations (exclude)', async ({ browser, context, page }) => {
const disabledFeatures = new DisabledFeatures(browser, context);
2023-07-31 22:24:25 +08:00
await disabledFeatures.initModPage(page, true, { createParameter: c.downloadPresentationWithAnnotationsExclude });
await disabledFeatures.downloadPresentationWithAnnotationsExclude();
});
});
2023-08-05 03:47:23 +08:00
test.describe.serial(() => {
test('Import Presentation With Annotations From Breakout Rooms', async ({ browser, context, page }) => {
const disabledFeatures = new DisabledFeatures(browser, context);
2023-07-31 22:24:25 +08:00
await disabledFeatures.initModPage(page, true, { createParameter: c.importPresentationWithAnnotationsFromBreakoutRoomsDisabled });
await disabledFeatures.importPresentationWithAnnotationsFromBreakoutRooms();
});
test('Import Presentation With Annotations From Breakout Rooms (exclude)', async ({ browser, context, page }) => {
const disabledFeatures = new DisabledFeatures(browser, context);
2023-07-31 22:24:25 +08:00
await disabledFeatures.initModPage(page, true, { createParameter: c.importPresentationWithAnnotationsFromBreakoutRoomsExclude });
await disabledFeatures.importPresentationWithAnnotationsFromBreakoutRoomsExclude();
});
});
test.describe.serial(() => {
test('Import Shared Notes From Breakout Rooms', async ({ browser, context, page }) => {
const disabledFeatures = new DisabledFeatures(browser, context);
2023-07-31 22:24:25 +08:00
await disabledFeatures.initModPage(page, true, { createParameter: c.importSharedNotesFromBreakoutRoomsDisabled });
await disabledFeatures.importSharedNotesFromBreakoutRooms();
});
test('Import Shared Notes From Breakout Rooms (exclude)', async ({ browser, context, page }) => {
const disabledFeatures = new DisabledFeatures(browser, context);
2023-07-31 22:24:25 +08:00
await disabledFeatures.initModPage(page, true, { createParameter: c.importSharedNotesFromBreakoutRoomsExclude });
await disabledFeatures.importSharedNotesFromBreakoutRoomsExclude();
});
});
test.describe.serial(() => {
test('Presentation', async ({ browser, context, page }) => {
const disabledFeatures = new DisabledFeatures(browser, context);
2023-07-31 22:24:25 +08:00
await disabledFeatures.initModPage(page, true, { createParameter: c.presentationDisabled });
await disabledFeatures.presentation();
});
test('Presentation (exclude)', async ({ browser, context, page }) => {
const disabledFeatures = new DisabledFeatures(browser, context);
2023-07-31 22:24:25 +08:00
await disabledFeatures.initModPage(page, true, { createParameter: c.presentationExclude });
await disabledFeatures.presentationExclude();
});
});
test.describe.serial(() => {
test('Custom Virtual Background', async ({ browser, context, page }) => {
const disabledFeatures = new DisabledFeatures(browser, context);
2023-07-31 22:24:25 +08:00
await disabledFeatures.initModPage(page, true, { createParameter: c.customVirtualBackgroundDisabled });
await disabledFeatures.customVirtualBackground();
});
test('Custom Virtual Background (exclude)', async ({ browser, context, page }) => {
const disabledFeatures = new DisabledFeatures(browser, context);
2023-07-31 22:24:25 +08:00
await disabledFeatures.initModPage(page, true, { createParameter: c.customVirtualBackgroundExclude });
await disabledFeatures.customVirtualBackgroundExclude();
});
});
test.describe.serial(() => {
test('Slide Snapshot', async ({ browser, context, page }) => {
2023-07-31 22:24:25 +08:00
const disabledFeatures = new DisabledFeatures(browser, context);
await disabledFeatures.initModPage(page, true, { createParameter: c.slideSnapshotDisabled });
await disabledFeatures.slideSnapshot();
});
test('Slide Snapshot (exclude)', async ({ browser, context, page }) => {
2023-07-31 22:24:25 +08:00
const disabledFeatures = new DisabledFeatures(browser, context);
await disabledFeatures.initModPage(page, true, { createParameter: c.slideSnapshotExclude });
await disabledFeatures.slideSnapshotExclude();
});
});
test.describe.serial(() => {
test('Camera As Content', async ({ browser, context, page }) => {
2023-07-31 22:24:25 +08:00
const disabledFeatures = new DisabledFeatures(browser, context);
await disabledFeatures.initModPage(page, true, { createParameter: c.cameraAsContent });
await disabledFeatures.cameraAsContent();
});
test('Camera As Content (exclude)', async ({ browser, context, page }) => {
2023-07-31 22:24:25 +08:00
const disabledFeatures = new DisabledFeatures(browser, context);
await disabledFeatures.initModPage(page, true, { createParameter: c.cameraAsContentExclude });
await disabledFeatures.cameraAsContentExclude();
});
});
2023-02-22 02:28:53 +08:00
});
2022-01-20 21:03:18 +08:00
});
2023-07-01 04:16:22 +08:00
test.describe.parallel('Custom Parameters', () => {
test('Show Public Chat On Login', async ({ browser, context, page }) => {
const customParam = new CustomParameters(browser, context);
2023-07-31 22:24:25 +08:00
await customParam.initModPage(page, true, { joinParameter: c.showPublicChatOnLogin });
2023-07-01 04:16:22 +08:00
await customParam.showPublicChatOnLogin();
});
test('Show Participants on Login', async ({ browser, context, page }) => {
const customParam = new CustomParameters(browser, context);
2023-07-31 22:24:25 +08:00
await customParam.initModPage(page, true, { joinParameter: c.showParticipantsOnLogin });
2023-07-01 04:16:22 +08:00
await customParam.showParticipantsOnLogin();
});
test('Client title', async ({ browser, context, page }) => {
const customParam = new CustomParameters(browser, context);
2023-07-31 22:24:25 +08:00
await customParam.initModPage(page, true, { joinParameter: c.clientTitle });
2023-07-01 04:16:22 +08:00
await customParam.clientTitle();
});
test('Ask For Feedback On Logout', async ({ browser, context, page }) => {
const customParam = new CustomParameters(browser, context);
2023-07-31 22:24:25 +08:00
await customParam.initModPage(page, true, { joinParameter: c.askForFeedbackOnLogout });
2023-07-01 04:16:22 +08:00
await customParam.askForFeedbackOnLogout();
});
test('Display Branding Area', async ({ browser, context, page }) => {
const customParam = new CustomParameters(browser, context);
2023-08-23 04:25:50 +08:00
await customParam.initModPage(page, true, { createParameter: `${c.displayBrandingArea}&${encodeCustomParams(c.logo)}` });
2023-07-01 04:16:22 +08:00
await customParam.displayBrandingArea();
});
test('Shortcuts', async ({ browser, context, page }) => {
const customParam = new CustomParameters(browser, context);
const shortcutParam = getAllShortcutParams();
2023-07-31 22:24:25 +08:00
await customParam.initModPage(page, true, { joinParameter: encodeCustomParams(shortcutParam) });
2023-07-01 04:16:22 +08:00
await customParam.initUserPage(true, context, { useModMeetingId: true });
await customParam.shortcuts();
});
test('Custom Styles: CSS code @ci @flaky', async ({ browser, context, page }) => {
2023-07-01 04:16:22 +08:00
const customParam = new CustomParameters(browser, context);
2023-07-31 22:24:25 +08:00
await customParam.initModPage(page, true, { joinParameter: encodeCustomParams(c.customStyle) });
2023-07-01 04:16:22 +08:00
await customParam.customStyle();
});
test('Custom Styles: URL', async ({ browser, context, page }) => {
test.fixme();
const customParam = new CustomParameters(browser, context);
2023-07-31 22:24:25 +08:00
await customParam.initModPage(page, true, { joinParameter: encodeCustomParams(c.customStyleUrl) });
2023-07-01 04:16:22 +08:00
await customParam.customStyle();
});
test('Auto Swap Layout', async ({ browser, context, page }) => {
const customParam = new CustomParameters(browser, context);
2023-07-31 22:24:25 +08:00
await customParam.initModPage(page, true, { joinParameter: c.autoSwapLayout });
2023-07-01 04:16:22 +08:00
await customParam.autoSwapLayout();
});
test('Hide Actions Bar @ci', async ({ browser, context, page }) => {
const customParam = new CustomParameters(browser, context);
2023-07-31 22:24:25 +08:00
await customParam.initModPage(page, true, { joinParameter: c.hideActionsBar });
2023-07-01 04:16:22 +08:00
await customParam.hideActionsBarTest();
});
test('Override Default Locale', async ({ browser, context, page }) => {
const customParam = new CustomParameters(browser, context);
2023-07-31 22:24:25 +08:00
await customParam.initModPage(page, true, { joinParameter: c.overrideDefaultLocale });
2023-07-01 04:16:22 +08:00
await customParam.overrideDefaultLocaleTest();
});
test('Hide NavBar @ci', async ({ browser, context, page }) => {
const customParam = new CustomParameters(browser, context);
2023-07-31 22:24:25 +08:00
await customParam.initModPage(page, true, { joinParameter: c.hideNavBar });
2023-07-01 04:16:22 +08:00
await customParam.hideNavBarTest();
});
test('Preferred Camera Profile', async ({ browser, context, page }) => {
const customParam = new CustomParameters(browser, context);
2023-07-31 22:24:25 +08:00
await customParam.initModPage(page, true, { joinParameter: c.preferredCameraProfile });
2023-07-01 04:16:22 +08:00
await customParam.preferredCameraProfileTest();
});
test.describe.parallel('Audio', () => {
test('Auto join @ci @flaky', async ({ browser, context, page }) => {
2023-07-01 04:16:22 +08:00
const customParam = new CustomParameters(browser, context);
2023-07-31 22:24:25 +08:00
await customParam.initModPage(page, false, { joinParameter: c.autoJoin });
2023-07-01 04:16:22 +08:00
await customParam.autoJoin();
});
test('Disable Listen Only Mode @ci', async ({ browser, context, page }) => {
const customParam = new CustomParameters(browser, context);
2023-07-31 22:24:25 +08:00
await customParam.initModPage(page, false, { joinParameter: c.listenOnlyMode });
2023-07-01 04:16:22 +08:00
await customParam.listenOnlyMode();
});
test('Force Listen Only @ci', async ({ browser, context, page }) => {
const customParam = new CustomParameters(browser, context);
2023-07-31 22:24:25 +08:00
await customParam.initUserPage(false, context, { useModMeetingId: false, joinParameter: c.forceListenOnly });
2023-07-01 04:16:22 +08:00
await customParam.forceListenOnly(page);
});
test('Skip audio check', async ({ browser, context, page }) => {
const customParam = new CustomParameters(browser, context);
2023-07-31 22:24:25 +08:00
await customParam.initModPage(page, false, { joinParameter: c.skipCheck });
2023-07-01 04:16:22 +08:00
await customParam.skipCheck();
});
test('Skip audio check on first join', async ({ browser, context, page }) => {
const customParam = new CustomParameters(browser, context);
2023-07-31 22:24:25 +08:00
await customParam.initModPage(page, false, { joinParameter: c.skipCheckOnFirstJoin });
2023-07-01 04:16:22 +08:00
await customParam.skipCheckOnFirstJoin();
});
});
test.describe.parallel('Presentation', () => {
test('Hide Presentation on join @ci', async ({ browser, context, page }) => {
const customParam = new CustomParameters(browser, context);
2023-07-31 22:24:25 +08:00
await customParam.initModPage(page, true, { joinParameter: encodeCustomParams(c.hidePresentationOnJoin) });
2023-07-01 04:16:22 +08:00
await customParam.hidePresentationOnJoin();
});
test('Force Restore Presentation On New Events @ci', async ({ browser, context, page }) => {
const customParam = new CustomParameters(browser, context);
2023-07-31 22:24:25 +08:00
const joinParameter = c.forceRestorePresentationOnNewEvents;
await customParam.initModPage(page, true, { joinParameter });
await customParam.forceRestorePresentationOnNewEvents(joinParameter);
2023-07-01 04:16:22 +08:00
});
test('Force Restore Presentation On New Poll Result', async ({ browser, context, page }) => {
const customParam = new CustomParameters(browser, context);
2023-07-31 22:24:25 +08:00
const joinParameter = c.forceRestorePresentationOnNewEvents;
await customParam.initModPage(page, true, { joinParameter });
await customParam.forceRestorePresentationOnNewPollResult(joinParameter);
2023-07-01 04:16:22 +08:00
});
});
test.describe.parallel('Webcam', () => {
test('Disable Webcam Sharing @ci', async ({ browser, context, page }) => {
const customParam = new CustomParameters(browser, context);
2023-07-31 22:24:25 +08:00
await customParam.initModPage(page, true, { joinParameter: c.enableVideo });
2023-07-01 04:16:22 +08:00
await customParam.enableVideo();
});
test('Skip Video Preview', async ({ browser, context, page }) => {
const customParam = new CustomParameters(browser, context);
2023-07-31 22:24:25 +08:00
await customParam.initModPage(page, true, { joinParameter: c.skipVideoPreview });
2023-07-01 04:16:22 +08:00
await customParam.skipVideoPreview();
});
test('Skip Video Preview on First Join @ci', async ({ browser, context, page }) => {
const customParam = new CustomParameters(browser, context);
2023-07-31 22:24:25 +08:00
await customParam.initModPage(page, true, { joinParameter: c.skipVideoPreviewOnFirstJoin });
2023-07-01 04:16:22 +08:00
await customParam.skipVideoPreviewOnFirstJoin();
});
test('Mirror Own Webcam @ci', async ({ browser, context, page }) => {
const customParam = new CustomParameters(browser, context);
2023-07-31 22:24:25 +08:00
await customParam.initModPage(page, true, { joinParameter: c.mirrorOwnWebcam });
2023-07-01 04:16:22 +08:00
await customParam.mirrorOwnWebcam();
});
});
test.describe.parallel('Whiteboard', () => {
test.skip();
test('Multi Users Pen Only', async ({ browser, context, page }) => {
const customParam = new CustomParameters(browser, context);
2023-07-31 22:24:25 +08:00
await customParam.initModPage(page, true, { joinParameter: c.multiUserPenOnly });
2023-08-23 04:25:50 +08:00
await customParam.initUserPage(true, context, { useModMeetingId: true, createParameter: c.multiUserPenOnly });
2023-07-01 04:16:22 +08:00
await customParam.multiUserPenOnly();
});
test('Presenter Tools', async ({ browser, context, page }) => {
const customParam = new CustomParameters(browser, context);
2023-07-31 22:24:25 +08:00
await customParam.initModPage(page, true, { joinParameter: encodeCustomParams(c.presenterTools) });
2023-07-01 04:16:22 +08:00
await customParam.presenterTools();
});
test('Multi Users Tools', async ({ browser, context, page }) => {
const customParam = new CustomParameters(browser, context);
2023-07-31 22:24:25 +08:00
await customParam.initModPage(page, true, { joinParameter: encodeCustomParams(c.multiUserTools) });
await customParam.initUserPage(true, context, { useModMeetingId: true, joinParameter: encodeCustomParams(c.multiUserTools) });
2023-07-01 04:16:22 +08:00
await customParam.multiUserTools();
});
});
});