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();
|
|
|
|
});
|
|
|
|
|
|
|
|
test('Meeting Duration Time', async() => {
|
2023-03-09 04:34:54 +08:00
|
|
|
await learningDashboard.userTimeOnMeeting();
|
2023-03-03 03:57:02 +08:00
|
|
|
});
|
|
|
|
|
2023-03-09 04:34:54 +08:00
|
|
|
test('Polls', async ({ context })=> {
|
|
|
|
await learningDashboard.initUserPage(true, context);
|
|
|
|
await learningDashboard.polls();
|
2023-03-03 03:57:02 +08:00
|
|
|
});
|
2023-04-06 05:08:21 +08:00
|
|
|
});
|