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

43 lines
1.6 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.describe.parallel('Manage', () => {
2022-06-08 02:52:22 +08:00
test('Upload presentation @ci', async ({ browser, context, page }) => {
2022-01-20 03:50:59 +08:00
const presentation = new Presentation(browser, context);
await presentation.initPages(page);
await presentation.uploadPresentationTest();
});
2022-06-08 02:52:22 +08:00
test('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
});