43 lines
1.3 KiB
JavaScript
43 lines
1.3 KiB
JavaScript
const { test } = require('@playwright/test');
|
|
const { fullyParallel } = require('../playwright.config');
|
|
const { LearningDashboard } = require('./learningdashboard');
|
|
const c = require('../parameters/constants');
|
|
|
|
if (!fullyParallel) test.describe.configure({ mode: 'serial' });
|
|
|
|
test.describe('Learning Dashboard', async () => {
|
|
const learningDashboard = new LearningDashboard();
|
|
|
|
test.beforeAll(async ({ browser }) => {
|
|
const context = await browser.newContext();
|
|
const page = await context.newPage();
|
|
await learningDashboard.initModPage(page, true, { createParameter: c.recordMeeting });
|
|
await learningDashboard.getDashboardPage(context);
|
|
});
|
|
|
|
test('Check message', async() => {
|
|
await learningDashboard.writeOnPublicChat();
|
|
});
|
|
|
|
test('User Time On Meeting', async() => {
|
|
await learningDashboard.userTimeOnMeeting();
|
|
});
|
|
|
|
test('Polls @ci', async ({ context }) => {
|
|
await learningDashboard.initUserPage(true, context, { isRecording: true });
|
|
await learningDashboard.polls();
|
|
});
|
|
|
|
test('Basic Infos @ci', async () => {
|
|
await learningDashboard.basicInfos();
|
|
});
|
|
|
|
test('Overview', async () => {
|
|
await learningDashboard.overview();
|
|
});
|
|
|
|
test('Download Session Learning Dashboard @ci', async ({ context }, testInfo) => {
|
|
await learningDashboard.downloadSessionLearningDashboard(testInfo);
|
|
});
|
|
});
|