2021-11-27 03:04:28 +08:00
|
|
|
const { test } = require('@playwright/test');
|
2021-12-02 12:12:14 +08:00
|
|
|
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 }) => {
|
2021-12-02 12:12:14 +08:00
|
|
|
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 }) => {
|
2021-12-02 12:12:14 +08:00
|
|
|
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 }) => {
|
2021-12-02 12:12:14 +08:00
|
|
|
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
|
|
|
|
2022-06-21 07:02:10 +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
|
2022-06-21 07:02:10 +08:00
|
|
|
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);
|
2022-07-16 02:05:13 +08:00
|
|
|
await presentation.initPages(page, true);
|
2022-06-21 07:02:10 +08:00
|
|
|
await presentation.uploadSinglePresentationTest();
|
|
|
|
});
|
|
|
|
|
2022-06-21 08:52:00 +08:00
|
|
|
// https://docs.bigbluebutton.org/2.5/release-tests.html#uploading-multiple-presentations-automated
|
2022-06-21 07:02:10 +08:00
|
|
|
test('Upload multiple presentations', async ({ browser, context, page }) => {
|
2022-01-20 03:50:59 +08:00
|
|
|
const presentation = new Presentation(browser, context);
|
2022-06-24 09:38:49 +08:00
|
|
|
await presentation.initPages(page, true);
|
2022-06-21 07:02:10 +08:00
|
|
|
await presentation.uploadMultiplePresentationsTest();
|
2022-01-20 03:50:59 +08:00
|
|
|
});
|
|
|
|
|
2022-07-02 04:55:32 +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
|
|
|
});
|