2024-03-06 22:26:03 +08:00
|
|
|
const { test } = require('../fixtures');
|
2023-09-01 04:21:48 +08:00
|
|
|
const { fullyParallel } = require('../playwright.config');
|
2023-03-01 01:44:30 +08:00
|
|
|
const { LearningDashboard } = require('./learningdashboard');
|
2023-07-08 01:05:06 +08:00
|
|
|
const c = require('../parameters/constants');
|
2024-01-20 00:42:01 +08:00
|
|
|
const { initializePages } = require('../core/helpers');
|
2023-09-01 04:21:48 +08:00
|
|
|
|
|
|
|
test.describe('Learning Dashboard', async () => {
|
2023-03-01 01:44:30 +08:00
|
|
|
const learningDashboard = new LearningDashboard();
|
2023-09-01 04:21:48 +08:00
|
|
|
|
2024-01-20 00:42:01 +08:00
|
|
|
test.describe.configure({ mode: fullyParallel ? 'parallel' : 'serial' });
|
|
|
|
test[fullyParallel ? 'beforeEach' : 'beforeAll'](async ({ browser }) => {
|
2024-03-07 04:11:17 +08:00
|
|
|
await initializePages(learningDashboard, browser, { createParameter: c.recordMeeting });
|
|
|
|
await learningDashboard.getDashboardPage();
|
2023-03-01 01:44:30 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
test('Check message', async() => {
|
|
|
|
await learningDashboard.writeOnPublicChat();
|
|
|
|
});
|
|
|
|
|
2023-03-24 00:43:29 +08:00
|
|
|
test('User Time On Meeting', async() => {
|
2023-03-09 04:34:54 +08:00
|
|
|
await learningDashboard.userTimeOnMeeting();
|
2023-03-03 03:57:02 +08:00
|
|
|
});
|
|
|
|
|
2024-03-07 04:11:17 +08:00
|
|
|
test('Polls @ci', async () => {
|
|
|
|
await learningDashboard.initUserPage(true, learningDashboard.modPage.context, { isRecording: true });
|
2023-03-09 04:34:54 +08:00
|
|
|
await learningDashboard.polls();
|
2023-03-03 03:57:02 +08:00
|
|
|
});
|
2023-03-24 00:43:29 +08:00
|
|
|
|
2023-05-19 21:11:24 +08:00
|
|
|
test('Basic Infos @ci', async () => {
|
2023-03-24 00:43:29 +08:00
|
|
|
await learningDashboard.basicInfos();
|
|
|
|
});
|
|
|
|
|
2024-05-15 05:07:58 +08:00
|
|
|
test('Overview @ci', async () => {
|
2023-03-24 00:43:29 +08:00
|
|
|
await learningDashboard.overview();
|
|
|
|
});
|
2023-04-11 02:50:49 +08:00
|
|
|
|
2024-03-07 04:11:17 +08:00
|
|
|
test('Download Session Learning Dashboard @ci', async ({}, testInfo) => {
|
2023-04-01 00:29:18 +08:00
|
|
|
await learningDashboard.downloadSessionLearningDashboard(testInfo);
|
|
|
|
});
|
2023-04-06 05:08:21 +08:00
|
|
|
});
|