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

41 lines
1.4 KiB
JavaScript
Raw Normal View History

const { test } = require('../fixtures');
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');
const { initializePages } = require('../core/helpers');
test.describe('Learning Dashboard', async () => {
2023-03-01 01:44:30 +08:00
const learningDashboard = new LearningDashboard();
test.describe.configure({ mode: fullyParallel ? 'parallel' : 'serial' });
test[fullyParallel ? 'beforeEach' : 'beforeAll'](async ({ browser }) => {
await initializePages(learningDashboard, browser, { createParameter: c.recordMeeting });
await learningDashboard.getDashboardPage();
2023-03-01 01:44:30 +08:00
});
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
});
2024-07-08 21:42:57 +08:00
test('Polls', { tag: '@ci' }, async () => {
await learningDashboard.initUserPage(true, learningDashboard.modPage.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
2024-07-08 21:42:57 +08:00
test('Basic Infos', { tag: '@ci' }, async () => {
2023-03-24 00:43:29 +08:00
await learningDashboard.basicInfos();
});
2024-07-08 21:42:57 +08:00
test('Overview', { tag: '@ci' }, async () => {
2023-03-24 00:43:29 +08:00
await learningDashboard.overview();
});
2024-07-08 21:42:57 +08:00
test('Download Session Learning Dashboard', { tag: '@ci' }, async ({}, testInfo) => {
await learningDashboard.downloadSessionLearningDashboard(testInfo);
});
});