bigbluebutton-Github/bigbluebutton-tests/playwright/learningdashboard/learningdashboard.spec.js

43 lines
1.3 KiB
JavaScript
Raw Normal View History

2023-02-24 01:37:17 +08:00
const { test } = require('@playwright/test');
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
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-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
});
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
test('Basic Infos @ci', async () => {
2023-03-24 00:43:29 +08:00
await learningDashboard.basicInfos();
});
test('Overview', async () => {
await learningDashboard.overview();
});
test('Download Session Learning Dashboard @ci', async ({ context }, testInfo) => {
await learningDashboard.downloadSessionLearningDashboard(testInfo);
});
});