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', () => {
|
|
|
|
test('Skip slide', 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
|
|
|
});
|
|
|
|
|
|
|
|
test('Upload presentation', async ({ browser, context, page }) => {
|
2021-12-02 12:12:14 +08:00
|
|
|
const presentation = new Presentation(browser, context);
|
|
|
|
await presentation.initPages(page);
|
|
|
|
await presentation.uploadPresentationTest();
|
2021-11-27 03:04:28 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
test('Allow and disallow presentation download', async ({ browser, context, page }) => {
|
2021-12-02 12:12:14 +08:00
|
|
|
const presentation = new Presentation(browser, context);
|
|
|
|
await presentation.initPages(page);
|
|
|
|
await presentation.allowAndDisallowDownload();
|
2021-11-27 03:04:28 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
test('Remove all presentation', async ({ browser, context, page }) => {
|
2021-12-02 12:12:14 +08:00
|
|
|
const presentation = new Presentation(browser, context);
|
|
|
|
await presentation.initPages(page);
|
|
|
|
await presentation.removeAllPresentation();
|
2021-11-27 03:04:28 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
test('Hide/Restore presentation', 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
|
|
|
});
|
2021-12-04 01:01:36 +08:00
|
|
|
});
|