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

58 lines
2.4 KiB
JavaScript
Raw Normal View History

2021-11-27 03:04:28 +08:00
const { test } = require('@playwright/test');
const { Presentation } = require('./presentation');
2021-11-27 03:04:28 +08:00
test.describe.parallel('Presentation', () => {
2022-06-08 02:52:22 +08:00
test('Skip slide @ci', async ({ browser, context, page }) => {
const presentation = new Presentation(browser, context);
await presentation.initPages(page);
await presentation.skipSlide();
2021-11-27 03:04:28 +08:00
});
2022-06-08 02:52:22 +08:00
test('Hide/Restore presentation @ci', async ({ browser, context, page }) => {
const presentation = new Presentation(browser, context);
await presentation.initPages(page);
await presentation.hideAndRestorePresentation();
2021-11-27 03:04:28 +08:00
});
test('Start external video', async ({ browser, context, page }) => {
const presentation = new Presentation(browser, context);
await presentation.initPages(page);
await presentation.startExternalVideo();
2021-11-27 03:04:28 +08:00
});
2022-01-20 03:50:59 +08:00
test('Presentation fit to width', async ({ browser, context, page }) => {
const presentation = new Presentation(browser, context);
await presentation.initPages(page);
await presentation.fitToWidthTest();
});
2022-01-20 03:50:59 +08:00
test.describe.parallel('Manage', () => {
2022-06-21 08:52:00 +08:00
// https://docs.bigbluebutton.org/2.5/release-tests.html#uploading-a-presentation-automated
test('Upload single presentation @ci', async ({ browser, context, page }) => {
2022-07-16 04:22:47 +08:00
test.fixme(true, 'Different behaviors in the development and production environment');
2022-01-20 03:50:59 +08:00
const presentation = new Presentation(browser, context);
await presentation.initPages(page, true);
await presentation.uploadSinglePresentationTest();
});
2022-06-21 08:52:00 +08:00
// https://docs.bigbluebutton.org/2.5/release-tests.html#uploading-multiple-presentations-automated
test('Upload multiple presentations', async ({ browser, context, page }) => {
2022-01-20 03:50:59 +08:00
const presentation = new Presentation(browser, context);
await presentation.initPages(page, true);
await presentation.uploadMultiplePresentationsTest();
2022-01-20 03:50:59 +08:00
});
test.skip('Allow and disallow presentation download @ci', async ({ browser, context, page }, testInfo) => {
2022-01-20 03:50:59 +08:00
const presentation = new Presentation(browser, context);
await presentation.initPages(page);
2022-03-21 23:04:43 +08:00
await presentation.allowAndDisallowDownload(testInfo);
2022-01-20 03:50:59 +08:00
});
test('Remove all presentation', async ({ browser, context, page }) => {
const presentation = new Presentation(browser, context);
await presentation.initPages(page);
await presentation.removeAllPresentation();
});
});
2021-12-04 01:01:36 +08:00
});