2023-02-24 01:37:17 +08:00
|
|
|
const { test } = require('@playwright/test');
|
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');
|
2023-02-24 01:37:17 +08:00
|
|
|
|
2023-09-01 04:21:48 +08:00
|
|
|
if (!fullyParallel) test.describe.configure({ mode: 'serial' });
|
|
|
|
|
|
|
|
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
|
|
|
|
2023-03-01 01:44:30 +08:00
|
|
|
test.beforeAll(async ({ browser }) => {
|
|
|
|
const context = await browser.newContext();
|
|
|
|
const page = await context.newPage();
|
2023-08-23 04:25:50 +08:00
|
|
|
await learningDashboard.initModPage(page, true, { createParameter: c.recordMeeting });
|
2023-03-01 01:44:30 +08:00
|
|
|
await learningDashboard.getDashboardPage(context);
|
|
|
|
});
|
|
|
|
|
|
|
|
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
|
|
|
});
|
|
|
|
|
2023-05-19 21:11:24 +08:00
|
|
|
test('Polls @ci', async ({ context }) => {
|
2023-08-23 04:25:50 +08:00
|
|
|
await learningDashboard.initUserPage(true, 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();
|
|
|
|
});
|
|
|
|
|
|
|
|
test('Overview', async () => {
|
|
|
|
await learningDashboard.overview();
|
|
|
|
});
|
2023-04-11 02:50:49 +08:00
|
|
|
|
2023-05-19 21:11:24 +08:00
|
|
|
test('Download Session Learning Dashboard @ci', async ({ context }, testInfo) => {
|
2023-04-01 00:29:18 +08:00
|
|
|
await learningDashboard.downloadSessionLearningDashboard(testInfo);
|
|
|
|
});
|
2023-04-06 05:08:21 +08:00
|
|
|
});
|