2023-02-24 01:37:17 +08:00
|
|
|
const { test } = require('@playwright/test');
|
2023-03-01 01:44:30 +08:00
|
|
|
const { LearningDashboard } = require('./learningdashboard');
|
2023-03-03 03:57:02 +08:00
|
|
|
const c = require('../customparameters/constants');
|
2023-02-24 01:37:17 +08:00
|
|
|
|
2023-03-09 04:34:54 +08:00
|
|
|
test.describe.serial('Learning Dashboard', async () => {
|
2023-03-01 01:44:30 +08:00
|
|
|
const learningDashboard = new LearningDashboard();
|
|
|
|
test.beforeAll(async ({ browser }) => {
|
|
|
|
const context = await browser.newContext();
|
|
|
|
const page = await context.newPage();
|
2023-03-03 03:57:02 +08:00
|
|
|
await learningDashboard.initModPage(page, true, { customParameter: 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-03-24 00:43:29 +08:00
|
|
|
test('Polls', async ({ context }) => {
|
2023-03-09 04:34:54 +08:00
|
|
|
await learningDashboard.initUserPage(true, context);
|
|
|
|
await learningDashboard.polls();
|
2023-03-03 03:57:02 +08:00
|
|
|
});
|
2023-03-24 00:43:29 +08:00
|
|
|
|
|
|
|
test('Basic Infos', async () => {
|
|
|
|
await learningDashboard.basicInfos();
|
|
|
|
});
|
|
|
|
|
|
|
|
test('Overview', async () => {
|
|
|
|
await learningDashboard.overview();
|
|
|
|
});
|
2023-03-10 22:24:14 +08:00
|
|
|
});
|