2021-09-28 11:21:14 +08:00
|
|
|
const Page = require('../core/page');
|
|
|
|
const CustomParameters = require('./customparameters');
|
|
|
|
const c = require('./constants');
|
|
|
|
const util = require('./util');
|
2021-10-21 01:23:24 +08:00
|
|
|
const { closePages } = require('../core/util');
|
2020-10-09 03:25:35 +08:00
|
|
|
const { toMatchImageSnapshot } = require('jest-image-snapshot');
|
2021-09-28 11:21:14 +08:00
|
|
|
const { MAX_CUSTOM_PARAMETERS_TEST_TIMEOUT } = require('../core/constants'); // core constants (Timeouts vars imported)
|
2020-10-09 03:25:35 +08:00
|
|
|
|
|
|
|
expect.extend({ toMatchImageSnapshot });
|
2020-08-06 02:44:17 +08:00
|
|
|
|
|
|
|
const customParametersTest = () => {
|
|
|
|
beforeEach(() => {
|
2021-02-17 04:57:10 +08:00
|
|
|
jest.setTimeout(MAX_CUSTOM_PARAMETERS_TEST_TIMEOUT);
|
2020-08-06 02:44:17 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
// This test spec sets the userdata-autoJoin parameter to false
|
|
|
|
// and checks that the users don't get audio modal on login
|
|
|
|
test('Auto join', async () => {
|
|
|
|
const test = new CustomParameters();
|
|
|
|
const page = new Page();
|
|
|
|
let response;
|
2020-10-09 03:25:35 +08:00
|
|
|
let screenshot;
|
2020-08-06 02:44:17 +08:00
|
|
|
try {
|
|
|
|
const testName = 'autoJoin';
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('before ', testName);
|
2021-09-30 20:36:08 +08:00
|
|
|
response = await test.autoJoin(testName, c.autoJoin);
|
2021-02-26 23:52:17 +08:00
|
|
|
await test.page1.stopRecording();
|
2020-10-09 03:25:35 +08:00
|
|
|
screenshot = await test.page1.page.screenshot();
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('after ', testName);
|
2021-08-26 22:13:18 +08:00
|
|
|
} catch (err) {
|
|
|
|
await page.logger(err);
|
2020-08-06 02:44:17 +08:00
|
|
|
} finally {
|
2021-10-21 01:23:24 +08:00
|
|
|
await test.page1.close();
|
2020-08-06 02:44:17 +08:00
|
|
|
}
|
|
|
|
expect(response).toBe(true);
|
2021-10-01 02:45:59 +08:00
|
|
|
Page.checkRegression(0.5, screenshot);
|
2020-08-06 02:44:17 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
// This test spec sets the userdata-listenOnlyMode parameter to false
|
|
|
|
// and checks that the users can't see or use listen Only mode
|
|
|
|
test('Listen Only Mode', async () => {
|
|
|
|
const test = new CustomParameters();
|
|
|
|
const page = new Page();
|
|
|
|
let response;
|
2020-10-09 03:25:35 +08:00
|
|
|
let screenshot;
|
2020-08-06 02:44:17 +08:00
|
|
|
try {
|
|
|
|
const testName = 'listenOnlyMode';
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('before ', testName);
|
2021-09-30 20:36:08 +08:00
|
|
|
response = await test.listenOnlyMode(testName, c.listenOnlyMode);
|
2021-02-26 23:52:17 +08:00
|
|
|
await test.page1.stopRecording();
|
2020-10-09 03:25:35 +08:00
|
|
|
screenshot = await test.page1.page.screenshot();
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('after ', testName);
|
2021-08-26 22:13:18 +08:00
|
|
|
} catch (err) {
|
|
|
|
await page.logger(err);
|
2020-08-06 02:44:17 +08:00
|
|
|
} finally {
|
2021-10-21 01:23:24 +08:00
|
|
|
await test.page1.close();
|
2020-08-06 02:44:17 +08:00
|
|
|
}
|
|
|
|
expect(response).toBe(true);
|
2021-10-01 02:45:59 +08:00
|
|
|
Page.checkRegression(0.5, screenshot);
|
2020-08-06 02:44:17 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
// This test spec sets the userdata-forceListenOnly parameter to false
|
|
|
|
// and checks that the Viewers can only use listen only mode
|
|
|
|
test('Force Listen Only', async () => {
|
|
|
|
const test = new CustomParameters();
|
|
|
|
const page = new Page();
|
|
|
|
let response;
|
2020-10-09 03:25:35 +08:00
|
|
|
let screenshot;
|
2020-08-06 02:44:17 +08:00
|
|
|
try {
|
|
|
|
const testName = 'forceListenOnly';
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('before ', testName);
|
2021-09-30 20:36:08 +08:00
|
|
|
response = await test.forceListenOnly(testName, c.forceListenOnly);
|
2021-02-26 23:52:17 +08:00
|
|
|
await test.page2.stopRecording();
|
2020-10-09 03:25:35 +08:00
|
|
|
screenshot = await test.page2.page.screenshot();
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('after ', testName);
|
2021-08-26 22:13:18 +08:00
|
|
|
} catch (err) {
|
|
|
|
await page.logger(err);
|
2020-08-06 02:44:17 +08:00
|
|
|
} finally {
|
2021-10-21 01:23:24 +08:00
|
|
|
await test.page2.close();
|
2020-08-06 02:44:17 +08:00
|
|
|
}
|
|
|
|
expect(response).toBe(true);
|
2021-10-01 02:45:59 +08:00
|
|
|
Page.checkRegression(0.5, screenshot);
|
2020-08-06 02:44:17 +08:00
|
|
|
});
|
|
|
|
|
2021-02-17 04:57:10 +08:00
|
|
|
// This test spec sets the userdata-bbb_skip_check_audio parameter to true
|
2020-08-06 02:44:17 +08:00
|
|
|
// and checks that the users automatically skip audio check when clicking on Microphone
|
|
|
|
test('Skip audio check', async () => {
|
|
|
|
const test = new CustomParameters();
|
|
|
|
const page = new Page();
|
|
|
|
let response;
|
2020-10-09 03:25:35 +08:00
|
|
|
let screenshot;
|
2020-08-06 02:44:17 +08:00
|
|
|
try {
|
|
|
|
const testName = 'skipCheck';
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('before ', testName);
|
2021-09-30 20:36:08 +08:00
|
|
|
response = await test.skipCheck(testName, c.skipCheck);
|
2021-02-26 23:52:17 +08:00
|
|
|
await test.page1.stopRecording();
|
2020-10-09 03:25:35 +08:00
|
|
|
screenshot = await test.page1.page.screenshot();
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('after ', testName);
|
2021-08-26 22:13:18 +08:00
|
|
|
} catch (err) {
|
|
|
|
await page.logger(err);
|
2020-08-06 02:44:17 +08:00
|
|
|
} finally {
|
2021-10-21 01:23:24 +08:00
|
|
|
await test.page1.close();
|
2020-08-06 02:44:17 +08:00
|
|
|
}
|
|
|
|
expect(response).toBe(true);
|
2021-10-01 02:45:59 +08:00
|
|
|
Page.checkRegression(53.18, screenshot);
|
2021-02-17 04:57:10 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
// This test spec sets the userdata-bbb_skip_check_audio_on_first_join parameter to true
|
|
|
|
// and checks that the users automatically skip audio check when clicking on Microphone
|
|
|
|
test('Skip audio check on first join', async () => {
|
|
|
|
const test = new CustomParameters();
|
|
|
|
const page = new Page();
|
|
|
|
let response;
|
|
|
|
let screenshot;
|
|
|
|
try {
|
|
|
|
const testName = 'skipCheckOnFirstJoin';
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('before ', testName);
|
2021-09-30 20:36:08 +08:00
|
|
|
response = await test.skipCheckOnFirstJoin(testName, c.skipCheckOnFirstJoin);
|
2021-02-26 23:52:17 +08:00
|
|
|
await test.page1.stopRecording();
|
2021-02-17 04:57:10 +08:00
|
|
|
screenshot = await test.page1.page.screenshot();
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('after ', testName);
|
2021-08-26 22:13:18 +08:00
|
|
|
} catch (err) {
|
|
|
|
await page.logger(err);
|
2021-02-17 04:57:10 +08:00
|
|
|
} finally {
|
2021-10-21 01:23:24 +08:00
|
|
|
await test.page1.close();
|
2021-02-17 04:57:10 +08:00
|
|
|
}
|
|
|
|
expect(response).toBe(true);
|
2021-10-01 02:45:59 +08:00
|
|
|
Page.checkRegression(53.18, screenshot);
|
2020-08-06 02:44:17 +08:00
|
|
|
});
|
|
|
|
|
2024-07-11 01:54:17 +08:00
|
|
|
// This test spec sets the userdata-bbb_skip_check_if_previous_device parameter to true
|
|
|
|
// and checks that the users automatically skip audio check when clicking on Microphone
|
2024-07-19 22:29:38 +08:00
|
|
|
test('Skip echo test if previouse device', async () => {
|
2024-07-11 01:54:17 +08:00
|
|
|
const test = new CustomParameters();
|
|
|
|
const page = new Page();
|
|
|
|
let response;
|
|
|
|
let screenshot;
|
|
|
|
try {
|
2024-07-19 22:29:38 +08:00
|
|
|
const testName = 'skipEchoTestIfPreviousDevice';
|
2024-07-11 01:54:17 +08:00
|
|
|
await page.logger('before ', testName);
|
2024-07-19 22:29:38 +08:00
|
|
|
response = await test.skipEchoTestIfPreviousDevice(testName, c.skipEchoTestIfPreviousDevice);
|
2024-07-11 01:54:17 +08:00
|
|
|
await test.page1.stopRecording();
|
|
|
|
screenshot = await test.page1.page.screenshot();
|
|
|
|
await page.logger('after ', testName);
|
|
|
|
} catch (err) {
|
|
|
|
await page.logger(err);
|
|
|
|
} finally {
|
|
|
|
await test.page1.close();
|
|
|
|
}
|
|
|
|
expect(response).toBe(true);
|
|
|
|
Page.checkRegression(53.18, screenshot);
|
|
|
|
});
|
|
|
|
|
2020-08-06 02:44:17 +08:00
|
|
|
// This test spec sets the userdata-clientTitle parameter to some value
|
|
|
|
// and checks that the meeting window name starts with that value
|
|
|
|
test('Client title', async () => {
|
|
|
|
const test = new CustomParameters();
|
|
|
|
const page = new Page();
|
|
|
|
let response;
|
2020-10-09 03:25:35 +08:00
|
|
|
let screenshot;
|
2020-08-06 02:44:17 +08:00
|
|
|
try {
|
|
|
|
const testName = 'clientTitle';
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('before ', testName);
|
2021-09-30 20:36:08 +08:00
|
|
|
response = await test.clientTitle(testName, c.clientTitle);
|
2021-02-26 23:52:17 +08:00
|
|
|
await test.page1.stopRecording();
|
2020-10-09 03:25:35 +08:00
|
|
|
screenshot = await test.page1.page.screenshot();
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('after ', testName);
|
2021-08-26 22:13:18 +08:00
|
|
|
} catch (err) {
|
|
|
|
await page.logger(err);
|
2020-08-06 02:44:17 +08:00
|
|
|
} finally {
|
2021-10-21 01:23:24 +08:00
|
|
|
await test.page1.close();
|
2020-08-06 02:44:17 +08:00
|
|
|
}
|
|
|
|
expect(response).toBe(true);
|
2021-10-01 02:45:59 +08:00
|
|
|
Page.checkRegression(0.5, screenshot);
|
2020-08-06 02:44:17 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
// This test spec sets the userdata-askForFeedbackOnLogout parameter to true
|
|
|
|
// and checks that the users automatically get asked for feedback on logout page
|
|
|
|
test('Ask For Feedback On Logout', async () => {
|
|
|
|
const test = new CustomParameters();
|
|
|
|
const page = new Page();
|
|
|
|
let response;
|
2020-10-09 03:25:35 +08:00
|
|
|
let screenshot;
|
2020-08-06 02:44:17 +08:00
|
|
|
try {
|
|
|
|
const testName = 'askForFeedbackOnLogout';
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('before ', testName);
|
2021-09-30 20:36:08 +08:00
|
|
|
response = await test.askForFeedbackOnLogout(testName, c.askForFeedbackOnLogout);
|
2021-02-26 23:52:17 +08:00
|
|
|
await test.page1.stopRecording();
|
2020-10-09 03:25:35 +08:00
|
|
|
screenshot = await test.page1.page.screenshot();
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('after ', testName);
|
2021-08-26 22:13:18 +08:00
|
|
|
} catch (err) {
|
|
|
|
await page.logger(err);
|
2020-08-06 02:44:17 +08:00
|
|
|
} finally {
|
2021-10-21 01:23:24 +08:00
|
|
|
await test.page1.close();
|
2020-08-06 02:44:17 +08:00
|
|
|
}
|
|
|
|
expect(response).toBe(true);
|
2021-10-01 02:45:59 +08:00
|
|
|
Page.checkRegression(0.5, screenshot);
|
2020-08-06 02:44:17 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
// This test spec sets the userdata-displayBrandingArea parameter to true and add a logo link
|
|
|
|
// and checks that the users see the logo displaying in the meeting
|
|
|
|
test('Display Branding Area', async () => {
|
|
|
|
const test = new CustomParameters();
|
|
|
|
const page = new Page();
|
|
|
|
let response;
|
2020-10-09 03:25:35 +08:00
|
|
|
let screenshot;
|
2020-08-06 02:44:17 +08:00
|
|
|
try {
|
|
|
|
const testName = 'displayBrandingArea';
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('before ', testName);
|
2021-08-03 01:46:17 +08:00
|
|
|
const parameterWithLogo = `${c.displayBrandingArea}&${util.encodeCustomParams(c.logo)}`;
|
2021-09-30 20:36:08 +08:00
|
|
|
response = await test.displayBrandingArea(testName, parameterWithLogo);
|
2021-02-26 23:52:17 +08:00
|
|
|
await test.page1.stopRecording();
|
2020-10-09 03:25:35 +08:00
|
|
|
screenshot = await test.page1.page.screenshot();
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('after ', testName);
|
2021-08-26 22:13:18 +08:00
|
|
|
} catch (err) {
|
|
|
|
await page.logger(err);
|
2020-08-06 02:44:17 +08:00
|
|
|
} finally {
|
2021-10-21 01:23:24 +08:00
|
|
|
await test.page1.close();
|
2020-08-06 02:44:17 +08:00
|
|
|
}
|
|
|
|
expect(response).toBe(true);
|
2021-10-01 02:45:59 +08:00
|
|
|
Page.checkRegression(0.5, screenshot);
|
2020-08-06 02:44:17 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
// This test spec sets the userdata-shortcuts parameter to one or a list of shortcuts parameters
|
|
|
|
// and checks that the users can use those shortcuts
|
|
|
|
test('Shortcuts', async () => {
|
|
|
|
const test = new CustomParameters();
|
|
|
|
const page = new Page();
|
|
|
|
let response;
|
2020-10-09 03:25:35 +08:00
|
|
|
let screenshot;
|
2020-08-06 02:44:17 +08:00
|
|
|
try {
|
|
|
|
const testName = 'shortcuts';
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('before ', testName);
|
2021-10-18 22:23:00 +08:00
|
|
|
const shortcutParam = util.getAllShortcutParams();
|
|
|
|
response = await test.shortcuts(testName, util.encodeCustomParams(shortcutParam));
|
2021-02-26 23:52:17 +08:00
|
|
|
await test.page1.stopRecording();
|
2020-10-09 03:25:35 +08:00
|
|
|
screenshot = await test.page1.page.screenshot();
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('after ', testName);
|
2021-08-26 22:13:18 +08:00
|
|
|
} catch (err) {
|
|
|
|
await page.logger(err);
|
2020-08-06 02:44:17 +08:00
|
|
|
} finally {
|
2021-10-21 01:23:24 +08:00
|
|
|
await closePages(test.page1, test.page2);
|
2020-08-06 02:44:17 +08:00
|
|
|
}
|
|
|
|
expect(response).toBe(true);
|
2021-10-01 02:45:59 +08:00
|
|
|
Page.checkRegression(0.5, screenshot);
|
2020-08-06 02:44:17 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
// This test spec sets the userdata-enableScreensharing parameter to false
|
|
|
|
// and checks that the Moderator can not see the Screen sharing button
|
|
|
|
test('Enable Screensharing', async () => {
|
|
|
|
const test = new CustomParameters();
|
|
|
|
const page = new Page();
|
|
|
|
let response;
|
2020-10-09 03:25:35 +08:00
|
|
|
let screenshot;
|
2020-08-06 02:44:17 +08:00
|
|
|
try {
|
|
|
|
const testName = 'enableScreensharing';
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('before ', testName);
|
2021-09-30 20:36:08 +08:00
|
|
|
response = await test.enableScreensharing(testName, c.enableScreensharing);
|
2021-02-26 23:52:17 +08:00
|
|
|
await test.page1.stopRecording();
|
2020-10-09 03:25:35 +08:00
|
|
|
screenshot = await test.page1.page.screenshot();
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('after ', testName);
|
2021-08-26 22:13:18 +08:00
|
|
|
} catch (err) {
|
|
|
|
await page.logger(err);
|
2020-08-06 02:44:17 +08:00
|
|
|
} finally {
|
2021-10-21 01:23:24 +08:00
|
|
|
await test.page1.close();
|
2020-08-06 02:44:17 +08:00
|
|
|
}
|
|
|
|
expect(response).toBe(true);
|
2021-10-01 02:45:59 +08:00
|
|
|
Page.checkRegression(0.5, screenshot);
|
2020-08-06 02:44:17 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
// This test spec sets the userdata-enableVideo parameter to false
|
|
|
|
// and checks that the Moderator can not see the Webcam sharing button
|
|
|
|
test('Enable Webcam', async () => {
|
|
|
|
const test = new CustomParameters();
|
|
|
|
const page = new Page();
|
|
|
|
let response;
|
2020-10-09 03:25:35 +08:00
|
|
|
let screenshot;
|
2020-08-06 02:44:17 +08:00
|
|
|
try {
|
|
|
|
const testName = 'enableVideo';
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('before ', testName);
|
2021-09-30 20:36:08 +08:00
|
|
|
response = await test.enableVideo(testName, c.enableVideo);
|
2021-02-26 23:52:17 +08:00
|
|
|
await test.page1.stopRecording();
|
2020-10-09 03:25:35 +08:00
|
|
|
screenshot = await test.page1.page.screenshot();
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('after ', testName);
|
2021-08-26 22:13:18 +08:00
|
|
|
} catch (err) {
|
|
|
|
await page.logger(err);
|
2020-08-06 02:44:17 +08:00
|
|
|
} finally {
|
2021-10-21 01:23:24 +08:00
|
|
|
await test.page1.close();
|
2020-08-06 02:44:17 +08:00
|
|
|
}
|
|
|
|
expect(response).toBe(true);
|
2021-10-01 02:45:59 +08:00
|
|
|
Page.checkRegression(0.5, screenshot);
|
2020-08-06 02:44:17 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
// This test spec sets the userdata-autoShareWebcam parameter to true
|
|
|
|
// and checks that the Moderator sees the Webcam Settings Modal automatically at his connection to meeting
|
|
|
|
test('Auto Share Webcam', async () => {
|
|
|
|
const test = new CustomParameters();
|
|
|
|
const page = new Page();
|
|
|
|
let response;
|
2020-10-09 03:25:35 +08:00
|
|
|
let screenshot;
|
2020-08-06 02:44:17 +08:00
|
|
|
try {
|
|
|
|
const testName = 'autoShareWebcam';
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('before ', testName);
|
2021-09-30 20:36:08 +08:00
|
|
|
response = await test.autoShareWebcam(testName, c.autoShareWebcam);
|
2021-02-26 23:52:17 +08:00
|
|
|
await test.page1.stopRecording();
|
2020-10-09 03:25:35 +08:00
|
|
|
screenshot = await test.page1.page.screenshot();
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('after ', testName);
|
2021-08-26 22:13:18 +08:00
|
|
|
} catch (err) {
|
|
|
|
await page.logger(err);
|
2020-08-06 02:44:17 +08:00
|
|
|
} finally {
|
2021-10-21 01:23:24 +08:00
|
|
|
await test.page1.close();
|
2020-08-06 02:44:17 +08:00
|
|
|
}
|
|
|
|
expect(response).toBe(true);
|
2021-10-01 02:45:59 +08:00
|
|
|
Page.checkRegression(0.5, screenshot);
|
2020-08-06 02:44:17 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
// This test spec sets the userdata-multiUserPenOnly parameter to true
|
|
|
|
// and checks that at multi Users whiteboard other users can see only pencil as drawing tool
|
|
|
|
test('Multi Users Pen Only', async () => {
|
|
|
|
const test = new CustomParameters();
|
|
|
|
const page = new Page();
|
|
|
|
let response;
|
2020-10-09 03:25:35 +08:00
|
|
|
let screenshot;
|
2020-08-06 02:44:17 +08:00
|
|
|
try {
|
|
|
|
const testName = 'multiUserPenOnly';
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('before ', testName);
|
2021-09-30 20:36:08 +08:00
|
|
|
response = await test.multiUserPenOnly(testName, c.multiUserPenOnly);
|
2021-02-26 23:52:17 +08:00
|
|
|
await test.page1.stopRecording();
|
|
|
|
await test.page2.stopRecording();
|
2020-10-09 03:25:35 +08:00
|
|
|
screenshot = await test.page1.page.screenshot();
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('after ', testName);
|
2021-08-26 22:13:18 +08:00
|
|
|
} catch (err) {
|
|
|
|
await page.logger(err);
|
2020-08-06 02:44:17 +08:00
|
|
|
} finally {
|
2021-10-21 01:23:24 +08:00
|
|
|
await closePages(test.page1, test.page2);
|
2020-08-06 02:44:17 +08:00
|
|
|
}
|
|
|
|
expect(response).toBe(true);
|
2021-10-01 02:45:59 +08:00
|
|
|
Page.checkRegression(0.5, screenshot);
|
2020-08-06 02:44:17 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
// This test spec sets the userdata-presenterTools parameter to an interval of parameters
|
|
|
|
// and checks that at multi Users whiteboard Presenter can see only the set tools from the interval
|
|
|
|
test('Presenter Tools', async () => {
|
|
|
|
const test = new CustomParameters();
|
|
|
|
const page = new Page();
|
|
|
|
let response;
|
2020-10-09 03:25:35 +08:00
|
|
|
let screenshot;
|
2020-08-06 02:44:17 +08:00
|
|
|
try {
|
|
|
|
const testName = 'presenterTools';
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('before ', testName);
|
2021-09-30 20:36:08 +08:00
|
|
|
response = await test.presenterTools(testName, util.encodeCustomParams(c.presenterTools));
|
2021-02-26 23:52:17 +08:00
|
|
|
await test.page1.stopRecording();
|
2020-10-09 03:25:35 +08:00
|
|
|
screenshot = await test.page1.page.screenshot();
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('after ', testName);
|
2021-08-26 22:13:18 +08:00
|
|
|
} catch (err) {
|
|
|
|
await page.logger(err);
|
2020-08-06 02:44:17 +08:00
|
|
|
} finally {
|
2021-10-21 01:23:24 +08:00
|
|
|
await test.page1.close();
|
2020-08-06 02:44:17 +08:00
|
|
|
}
|
|
|
|
expect(response).toBe(true);
|
2021-10-01 02:45:59 +08:00
|
|
|
Page.checkRegression(0.5, screenshot);
|
2020-08-06 02:44:17 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
// This test spec sets the userdata-multiUserTools parameter to an interval of parameters
|
|
|
|
// and checks that at multi Users whiteboard other users can see only the set tools from the interval
|
|
|
|
test('Multi Users Tools', async () => {
|
|
|
|
const test = new CustomParameters();
|
|
|
|
const page = new Page();
|
|
|
|
let response;
|
2020-10-09 03:25:35 +08:00
|
|
|
let screenshot;
|
2020-08-06 02:44:17 +08:00
|
|
|
try {
|
|
|
|
const testName = 'multiUserTools';
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('before ', testName);
|
2021-09-30 20:36:08 +08:00
|
|
|
response = await test.multiUserTools(testName, util.encodeCustomParams(c.multiUserTools));
|
2021-02-26 23:52:17 +08:00
|
|
|
await test.page1.stopRecording();
|
|
|
|
await test.page2.stopRecording();
|
|
|
|
screenshot = await test.page2.page.screenshot();
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('after ', testName);
|
2021-08-26 22:13:18 +08:00
|
|
|
} catch (err) {
|
|
|
|
await page.logger(err);
|
2020-08-06 02:44:17 +08:00
|
|
|
} finally {
|
2021-10-21 01:23:24 +08:00
|
|
|
await closePages(test.page1, test.page2);
|
2020-08-06 02:44:17 +08:00
|
|
|
}
|
|
|
|
expect(response).toBe(true);
|
2021-10-01 02:45:59 +08:00
|
|
|
Page.checkRegression(0.5, screenshot);
|
2020-08-06 02:44:17 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
// This test spec sets the userdata-customStyle parameter to an interval of styles
|
|
|
|
// and checks that the meeting displays what was called in the styles interval
|
2021-10-01 02:45:59 +08:00
|
|
|
test('Custom Styles: CSS code', async () => {
|
2020-08-06 02:44:17 +08:00
|
|
|
const test = new CustomParameters();
|
|
|
|
const page = new Page();
|
|
|
|
let response;
|
2020-10-09 03:25:35 +08:00
|
|
|
let screenshot;
|
2020-08-06 02:44:17 +08:00
|
|
|
try {
|
|
|
|
const testName = 'customStyle';
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('before ', testName);
|
2021-09-30 20:36:08 +08:00
|
|
|
response = await test.customStyle(testName, util.encodeCustomParams(c.customStyle));
|
2021-02-26 23:52:17 +08:00
|
|
|
await test.page1.stopRecording();
|
2020-10-09 03:25:35 +08:00
|
|
|
screenshot = await test.page1.page.screenshot();
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('after ', testName);
|
2021-08-26 22:13:18 +08:00
|
|
|
} catch (err) {
|
|
|
|
await page.logger(err);
|
2020-08-06 02:44:17 +08:00
|
|
|
} finally {
|
2021-10-21 01:23:24 +08:00
|
|
|
await test.page1.close();
|
2020-08-06 02:44:17 +08:00
|
|
|
}
|
|
|
|
expect(response).toBe(true);
|
2021-10-01 02:45:59 +08:00
|
|
|
Page.checkRegression(0.5, screenshot);
|
2020-08-06 02:44:17 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
// This test spec sets the userdata-customStyleUrl parameter to a styles URL
|
|
|
|
// and checks that the meeting displays what was called in the styles URL
|
2021-10-01 02:45:59 +08:00
|
|
|
test('Custom Styles: URL', async () => {
|
2020-08-06 02:44:17 +08:00
|
|
|
const test = new CustomParameters();
|
|
|
|
const page = new Page();
|
|
|
|
let response;
|
2020-10-09 03:25:35 +08:00
|
|
|
let screenshot;
|
2020-08-06 02:44:17 +08:00
|
|
|
try {
|
|
|
|
const testName = 'customStyleUrl';
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('before ', testName);
|
2021-10-01 02:45:59 +08:00
|
|
|
response = await test.customStyle(testName, util.encodeCustomParams(c.customStyleUrl));
|
2021-02-26 23:52:17 +08:00
|
|
|
await test.page1.stopRecording();
|
2020-10-09 03:25:35 +08:00
|
|
|
screenshot = await test.page1.page.screenshot();
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('after ', testName);
|
2021-08-26 22:13:18 +08:00
|
|
|
} catch (err) {
|
|
|
|
await page.logger(err);
|
2020-08-06 02:44:17 +08:00
|
|
|
} finally {
|
2021-10-21 01:23:24 +08:00
|
|
|
await test.page1.close();
|
2020-08-06 02:44:17 +08:00
|
|
|
}
|
|
|
|
expect(response).toBe(true);
|
2021-10-01 02:45:59 +08:00
|
|
|
Page.checkRegression(0.5, screenshot);
|
2020-08-06 02:44:17 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
// This test spec sets the userdata-autoSwapLayout parameter to true
|
|
|
|
// and checks that at any webcam share, the focus will be on the webcam,
|
|
|
|
// and the presentation gets minimized and the available shared webcam will replace the Presentation
|
|
|
|
test('Auto Swap Layout', async () => {
|
|
|
|
const test = new CustomParameters();
|
|
|
|
const page = new Page();
|
|
|
|
let response;
|
2020-10-09 03:25:35 +08:00
|
|
|
let screenshot;
|
2020-08-06 02:44:17 +08:00
|
|
|
try {
|
|
|
|
const testName = 'autoSwapLayout';
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('before ', testName);
|
2021-09-30 20:36:08 +08:00
|
|
|
response = await test.autoSwapLayout(testName, c.autoSwapLayout);
|
2021-02-26 23:52:17 +08:00
|
|
|
await test.page1.stopRecording();
|
2020-10-09 03:25:35 +08:00
|
|
|
screenshot = await test.page1.page.screenshot();
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('after ', testName);
|
2021-08-26 22:13:18 +08:00
|
|
|
} catch (err) {
|
|
|
|
await page.logger(err);
|
2020-08-06 02:44:17 +08:00
|
|
|
} finally {
|
2021-10-21 01:23:24 +08:00
|
|
|
await test.page1.close();
|
2020-08-06 02:44:17 +08:00
|
|
|
}
|
|
|
|
expect(response).toBe(true);
|
2021-10-01 02:45:59 +08:00
|
|
|
Page.checkRegression(0.5, screenshot);
|
2020-08-06 02:44:17 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
// This test spec sets the userdata-hidePresentation parameter to true
|
|
|
|
// and checks that the Presentation is totally hidden, and its place will be displaying a message
|
|
|
|
test('Hide Presentation', async () => {
|
|
|
|
const test = new CustomParameters();
|
|
|
|
const page = new Page();
|
|
|
|
let response;
|
2020-10-09 03:25:35 +08:00
|
|
|
let screenshot;
|
2020-08-06 02:44:17 +08:00
|
|
|
try {
|
|
|
|
const testName = 'hidePresentation';
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('before ', testName);
|
2021-09-30 20:36:08 +08:00
|
|
|
response = await test.hidePresentation(testName, util.encodeCustomParams(c.hidePresentation));
|
2021-02-26 23:52:17 +08:00
|
|
|
await test.page1.stopRecording();
|
2020-10-09 03:25:35 +08:00
|
|
|
screenshot = await test.page1.page.screenshot();
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('after ', testName);
|
2021-08-26 22:13:18 +08:00
|
|
|
} catch (err) {
|
|
|
|
await page.logger(err);
|
2020-08-06 02:44:17 +08:00
|
|
|
} finally {
|
2021-10-21 01:23:24 +08:00
|
|
|
await test.page1.close();
|
2020-08-06 02:44:17 +08:00
|
|
|
}
|
|
|
|
expect(response).toBe(true);
|
2021-10-01 02:45:59 +08:00
|
|
|
Page.checkRegression(0.5, screenshot);
|
2020-08-06 02:44:17 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
// This test spec sets the userdata-bannerText parameter to some text
|
|
|
|
// and checks that the meeting has a banner bar containing the same text
|
|
|
|
test('Banner Text', async () => {
|
|
|
|
const test = new CustomParameters();
|
|
|
|
const page = new Page();
|
|
|
|
let response;
|
2020-10-09 03:25:35 +08:00
|
|
|
let screenshot;
|
2020-08-06 02:44:17 +08:00
|
|
|
try {
|
|
|
|
const testName = 'bannerText';
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('before ', testName);
|
2021-09-30 20:36:08 +08:00
|
|
|
response = await test.bannerText(testName, util.encodeCustomParams(c.bannerText));
|
2021-02-26 23:52:17 +08:00
|
|
|
await test.page1.stopRecording();
|
2020-10-09 03:25:35 +08:00
|
|
|
screenshot = await test.page1.page.screenshot();
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('after ', testName);
|
2021-08-26 22:13:18 +08:00
|
|
|
} catch (err) {
|
|
|
|
await page.logger(err);
|
2020-08-06 02:44:17 +08:00
|
|
|
} finally {
|
2021-10-21 01:23:24 +08:00
|
|
|
await test.page1.close();
|
2020-08-06 02:44:17 +08:00
|
|
|
}
|
|
|
|
expect(response).toBe(true);
|
2021-10-01 02:45:59 +08:00
|
|
|
Page.checkRegression(0.5, screenshot);
|
2020-08-06 02:44:17 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
// This test spec sets the userdata-bannerColor parameter to some hex color value
|
|
|
|
// and checks that the meeting has a banner bar containing that color in rgb(r, g, b)
|
|
|
|
test('Banner Color', async () => {
|
|
|
|
const test = new CustomParameters();
|
|
|
|
const page = new Page();
|
|
|
|
let response;
|
2020-10-09 03:25:35 +08:00
|
|
|
let screenshot;
|
2020-08-06 02:44:17 +08:00
|
|
|
try {
|
|
|
|
const testName = 'bannerColor';
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('before ', testName);
|
2020-08-06 02:44:17 +08:00
|
|
|
const colorToRGB = util.hexToRgb(c.color);
|
2021-09-30 20:36:08 +08:00
|
|
|
response = await test.bannerColor(testName, `${c.bannerColor}&${util.encodeCustomParams(c.bannerText)}`, colorToRGB);
|
2021-02-26 23:52:17 +08:00
|
|
|
await test.page1.stopRecording();
|
2020-10-09 03:25:35 +08:00
|
|
|
screenshot = await test.page1.page.screenshot();
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('after ', testName);
|
2021-08-26 22:13:18 +08:00
|
|
|
} catch (err) {
|
|
|
|
await page.logger(err);
|
2020-08-06 02:44:17 +08:00
|
|
|
} finally {
|
2021-10-21 01:23:24 +08:00
|
|
|
await test.page1.close();
|
2020-08-06 02:44:17 +08:00
|
|
|
}
|
|
|
|
expect(response).toBe(true);
|
2021-10-01 02:45:59 +08:00
|
|
|
Page.checkRegression(0.5, screenshot);
|
2020-08-06 02:44:17 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
// This test spec sets the userdata-bbb_show_public_chat_on_login parameter to false
|
|
|
|
// and checks that the users don't see that box by default
|
|
|
|
test('Show Public Chat On Login', async () => {
|
|
|
|
const test = new CustomParameters();
|
|
|
|
const page = new Page();
|
|
|
|
let response;
|
2020-10-09 03:25:35 +08:00
|
|
|
let screenshot;
|
2020-08-06 02:44:17 +08:00
|
|
|
try {
|
|
|
|
const testName = 'showPublicChatOnLogin';
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('before ', testName);
|
2021-09-30 20:36:08 +08:00
|
|
|
response = await test.showPublicChatOnLogin(testName, c.showPublicChatOnLogin);
|
2021-02-26 23:52:17 +08:00
|
|
|
await test.page1.stopRecording();
|
2020-10-09 03:25:35 +08:00
|
|
|
screenshot = await test.page1.page.screenshot();
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('after ', testName);
|
2021-08-26 22:13:18 +08:00
|
|
|
} catch (err) {
|
|
|
|
await page.logger(err);
|
2020-08-06 02:44:17 +08:00
|
|
|
} finally {
|
2021-10-21 01:23:24 +08:00
|
|
|
await test.page1.close();
|
2020-08-06 02:44:17 +08:00
|
|
|
}
|
|
|
|
expect(response).toBe(true);
|
2021-10-01 02:45:59 +08:00
|
|
|
Page.checkRegression(0.5, screenshot);
|
2020-08-06 02:44:17 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
// This test spec sets the userdata-bbb_force_restore_presentation_on_new_events parameter to true
|
|
|
|
// and checks that the viewers get the presentation restored forcefully when the Moderator zooms
|
|
|
|
// in/out the presentation or publishes a poll or adds an annotation
|
|
|
|
test('Force Restore Presentation On New Events', async () => {
|
|
|
|
const test = new CustomParameters();
|
|
|
|
const page = new Page();
|
|
|
|
let response;
|
2020-10-09 03:25:35 +08:00
|
|
|
let screenshot;
|
2020-08-06 02:44:17 +08:00
|
|
|
try {
|
|
|
|
const testName = 'forceRestorePresentationOnNewEvents';
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('before ', testName);
|
2021-09-30 20:36:08 +08:00
|
|
|
response = await test.forceRestorePresentationOnNewEvents(testName, c.forceRestorePresentationOnNewEvents);
|
2021-02-26 23:52:17 +08:00
|
|
|
await test.page1.stopRecording();
|
|
|
|
await test.page2.stopRecording();
|
2020-10-09 03:25:35 +08:00
|
|
|
screenshot = await test.page1.page.screenshot();
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('after ', testName);
|
2021-08-26 22:13:18 +08:00
|
|
|
} catch (err) {
|
|
|
|
await page.logger(err);
|
2020-08-06 02:44:17 +08:00
|
|
|
} finally {
|
2021-10-21 01:23:24 +08:00
|
|
|
await closePages(test.page1, test.page2);
|
2020-08-06 02:44:17 +08:00
|
|
|
}
|
|
|
|
expect(response).toBe(true);
|
2021-10-01 02:45:59 +08:00
|
|
|
Page.checkRegression(0.5, screenshot);
|
2020-08-06 02:44:17 +08:00
|
|
|
});
|
2020-09-22 02:22:11 +08:00
|
|
|
|
2021-10-20 04:12:00 +08:00
|
|
|
// This test spec sets the userdata-bbb_force_restore_presentation_on_new_events parameter to true
|
|
|
|
// and checks that the viewers get the presentation restored forcefully when the Moderator zooms
|
|
|
|
// publishes a poll result
|
|
|
|
test('Force Restore Presentation On New Poll Result', async () => {
|
|
|
|
const test = new CustomParameters();
|
|
|
|
let response;
|
|
|
|
let screenshot;
|
|
|
|
try {
|
|
|
|
const testName = 'forceRestorePresentationOnNewPollResult';
|
|
|
|
await test.page1.logger('begin of ', testName);
|
|
|
|
response = await test.forceRestorePresentationOnNewPollResult(testName, c.forceRestorePresentationOnNewEvents);
|
|
|
|
await test.page1.logger('end of ', testName);
|
|
|
|
await test.page2.stopRecording();
|
|
|
|
screenshot = await test.page1.page.screenshot();
|
|
|
|
} catch (err) {
|
|
|
|
await test.page1.logger(err);
|
|
|
|
} finally {
|
2021-10-21 01:23:24 +08:00
|
|
|
await closePages(test.page1, test.page2);
|
2021-10-20 04:12:00 +08:00
|
|
|
}
|
|
|
|
expect(response).toBe(true);
|
|
|
|
Page.checkRegression(0.5, screenshot);
|
|
|
|
});
|
|
|
|
|
2020-09-22 02:22:11 +08:00
|
|
|
// This test spec sets the userdata-bbb_record_video parameter to false
|
|
|
|
// and makes sure that the meeting recording button should not be available
|
|
|
|
test('Record Meeting', async () => {
|
|
|
|
const test = new CustomParameters();
|
|
|
|
const page = new Page();
|
|
|
|
let response;
|
2021-09-22 22:08:39 +08:00
|
|
|
let screenshot;
|
2020-09-22 02:22:11 +08:00
|
|
|
try {
|
|
|
|
const testName = 'recordMeeting';
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('before ', testName);
|
2021-09-30 20:36:08 +08:00
|
|
|
response = await test.recordMeeting(testName, c.recordMeeting);
|
2021-02-26 23:52:17 +08:00
|
|
|
await test.page1.stopRecording();
|
2021-09-22 22:08:39 +08:00
|
|
|
screenshot = await test.page1.page.screenshot();
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('after ', testName);
|
2021-08-26 22:13:18 +08:00
|
|
|
} catch (err) {
|
|
|
|
await page.logger(err);
|
2020-09-22 02:22:11 +08:00
|
|
|
} finally {
|
2021-10-21 01:23:24 +08:00
|
|
|
await test.page1.close();
|
2020-09-22 02:22:11 +08:00
|
|
|
}
|
|
|
|
expect(response).toBe(true);
|
2021-10-01 02:45:59 +08:00
|
|
|
Page.checkRegression(0.5, screenshot);
|
2020-09-22 02:22:11 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
// This test spec sets the userdata-bbb_skip_video_preview parameter to true
|
|
|
|
// and makes sure that the webcam video preview modal should not appear
|
|
|
|
test('Skip Video Preview', async () => {
|
|
|
|
const test = new CustomParameters();
|
|
|
|
const page = new Page();
|
|
|
|
let response;
|
2021-09-22 22:08:39 +08:00
|
|
|
let screenshot;
|
2020-09-22 02:22:11 +08:00
|
|
|
try {
|
|
|
|
const testName = 'skipVideoPreview';
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('before ', testName);
|
2021-09-30 20:36:08 +08:00
|
|
|
response = await test.skipVideoPreview(testName, c.skipVideoPreview);
|
2021-02-26 23:52:17 +08:00
|
|
|
await test.page1.stopRecording();
|
2021-09-22 22:08:39 +08:00
|
|
|
screenshot = await test.page1.page.screenshot();
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('after ', testName);
|
2021-08-26 22:13:18 +08:00
|
|
|
} catch (err) {
|
|
|
|
await page.logger(err);
|
2020-09-22 02:22:11 +08:00
|
|
|
} finally {
|
2021-10-21 01:23:24 +08:00
|
|
|
await test.page1.close();
|
2020-09-22 02:22:11 +08:00
|
|
|
}
|
|
|
|
expect(response).toBe(true);
|
2021-10-01 02:45:59 +08:00
|
|
|
Page.checkRegression(0.5, screenshot);
|
2020-09-22 02:22:11 +08:00
|
|
|
});
|
|
|
|
|
2021-02-17 04:57:10 +08:00
|
|
|
// This test spec sets the userdata-bbb_skip_video_preview_on_first_join parameter to true
|
|
|
|
// and makes sure that the webcam video preview modal should not appear on first join only
|
|
|
|
test('Skip Video Preview on First Join', async () => {
|
|
|
|
const test = new CustomParameters();
|
|
|
|
const page = new Page();
|
|
|
|
let response;
|
2021-09-22 22:08:39 +08:00
|
|
|
let screenshot;
|
2021-02-17 04:57:10 +08:00
|
|
|
try {
|
|
|
|
const testName = 'skipVideoPreviewOnFirstJoin';
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('before ', testName);
|
2021-09-30 20:36:08 +08:00
|
|
|
response = await test.skipVideoPreviewOnFirstJoin(testName, c.skipVideoPreviewOnFirstJoin);
|
2021-02-26 23:52:17 +08:00
|
|
|
await test.page1.stopRecording();
|
2021-09-22 22:08:39 +08:00
|
|
|
screenshot = await test.page1.page.screenshot();
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('after ', testName);
|
2021-08-26 22:13:18 +08:00
|
|
|
} catch (err) {
|
|
|
|
await page.logger(err);
|
2021-02-17 04:57:10 +08:00
|
|
|
} finally {
|
2021-10-21 01:23:24 +08:00
|
|
|
await test.page1.close();
|
2021-02-17 04:57:10 +08:00
|
|
|
}
|
|
|
|
expect(response).toBe(true);
|
2021-10-01 02:45:59 +08:00
|
|
|
Page.checkRegression(0.5, screenshot);
|
2021-02-17 04:57:10 +08:00
|
|
|
});
|
|
|
|
|
2020-09-22 02:22:11 +08:00
|
|
|
// This test spec sets the userdata-bbb_mirror_own_webcam parameter to true
|
|
|
|
// and makes sure that the webcam video preview and the container
|
|
|
|
// should both appear with mirrored Tag
|
|
|
|
test('Mirror Own Webcam', async () => {
|
|
|
|
const test = new CustomParameters();
|
|
|
|
const page = new Page();
|
|
|
|
let response;
|
2021-09-22 22:08:39 +08:00
|
|
|
let screenshot;
|
2020-09-22 02:22:11 +08:00
|
|
|
try {
|
|
|
|
const testName = 'mirrorOwnWebcam';
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('before ', testName);
|
2021-09-30 20:36:08 +08:00
|
|
|
response = await test.mirrorOwnWebcam(testName, c.mirrorOwnWebcam);
|
2021-02-26 23:52:17 +08:00
|
|
|
await test.page1.stopRecording();
|
2021-09-22 22:08:39 +08:00
|
|
|
screenshot = await test.page1.page.screenshot();
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('after ', testName);
|
2021-08-26 22:13:18 +08:00
|
|
|
} catch (err) {
|
|
|
|
await page.logger(err);
|
2020-09-22 02:22:11 +08:00
|
|
|
} finally {
|
2021-10-21 01:23:24 +08:00
|
|
|
await test.page1.close();
|
2020-09-22 02:22:11 +08:00
|
|
|
}
|
|
|
|
expect(response).toBe(true);
|
2021-10-01 02:45:59 +08:00
|
|
|
Page.checkRegression(0.5, screenshot);
|
2020-09-22 02:22:11 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
// This test spec sets the userdata-bbb_show_participants_on_login parameter to false
|
|
|
|
// and makes sure that the user list won't appear on login
|
|
|
|
test('Show Participants on Login', async () => {
|
|
|
|
const test = new CustomParameters();
|
|
|
|
const page = new Page();
|
|
|
|
let response;
|
2021-09-22 22:08:39 +08:00
|
|
|
let screenshot;
|
2020-09-22 02:22:11 +08:00
|
|
|
try {
|
|
|
|
const testName = 'showParticipantsOnLogin';
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('before ', testName);
|
2021-09-30 20:36:08 +08:00
|
|
|
response = await test.showParticipantsOnLogin(testName, c.showParticipantsOnLogin);
|
2021-02-26 23:52:17 +08:00
|
|
|
await test.page1.stopRecording();
|
2021-09-22 22:08:39 +08:00
|
|
|
screenshot = await test.page1.page.screenshot();
|
2021-08-14 02:03:01 +08:00
|
|
|
await page.logger('after ', testName);
|
2021-08-26 22:13:18 +08:00
|
|
|
} catch (err) {
|
|
|
|
await page.logger(err);
|
2020-09-22 02:22:11 +08:00
|
|
|
} finally {
|
2021-10-21 01:23:24 +08:00
|
|
|
await test.page1.close();
|
2020-09-22 02:22:11 +08:00
|
|
|
}
|
|
|
|
expect(response).toBe(true);
|
2021-10-01 02:45:59 +08:00
|
|
|
Page.checkRegression(0.5, screenshot);
|
2020-09-22 02:22:11 +08:00
|
|
|
});
|
2020-08-06 02:44:17 +08:00
|
|
|
};
|
2020-09-22 02:22:11 +08:00
|
|
|
|
2023-04-04 04:23:26 +08:00
|
|
|
module.exports = exports = customParametersTest;
|