bigbluebutton-Github/bigbluebutton-tests/playwright/learningdashboard/learningdashboard.spec.js
Anton Barboza de Sá d30b806b47
test: Fix no-flaky tests and properly set the execution mode (#19436)
* test: fix shortcuts, add flaky flag for test requiring graphql data, fix slide change for tldraw v2

* test: properly set the execution mode

* test: use isMultiUser parameter inside options obj

* test: fix banner color test

* test: increase breakout test timeouts for user joining room

* test: redo the change in the hide presentation on join test

* test: change hide presentation steps and add flaky flag on it
2024-01-19 13:42:01 -03:00

41 lines
1.4 KiB
JavaScript

const { test } = require('@playwright/test');
const { fullyParallel } = require('../playwright.config');
const { LearningDashboard } = require('./learningdashboard');
const c = require('../parameters/constants');
const { initializePages } = require('../core/helpers');
test.describe('Learning Dashboard', async () => {
const learningDashboard = new LearningDashboard();
test.describe.configure({ mode: fullyParallel ? 'parallel' : 'serial' });
test[fullyParallel ? 'beforeEach' : 'beforeAll'](async ({ browser }) => {
const { context } = await initializePages(learningDashboard, browser, { 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);
});
});