2021-11-30 02:39:52 +08:00
|
|
|
const { test } = require('@playwright/test');
|
2022-11-08 00:18:52 +08:00
|
|
|
const { SharedNotes, SharedNotesMultiUsers } = require('./sharednotes');
|
2021-11-30 02:39:52 +08:00
|
|
|
|
|
|
|
test.describe.parallel('Shared Notes', () => {
|
2022-11-08 00:18:52 +08:00
|
|
|
test('Open Shared notes @ci', async ({ browser, page, context }) => {
|
|
|
|
const sharedNotes = new SharedNotes(browser, context);
|
2022-11-19 00:38:46 +08:00
|
|
|
await sharedNotes.initModPage(page);
|
2021-12-02 12:12:14 +08:00
|
|
|
await sharedNotes.openSharedNotes();
|
|
|
|
});
|
2022-11-08 00:18:52 +08:00
|
|
|
test('Type in shared notes', async ({ browser, page, context }) => {
|
2022-07-21 03:44:09 +08:00
|
|
|
// https://docs.bigbluebutton.org/2.5/release-tests.html#using-shared-notes-panel
|
2022-11-08 00:18:52 +08:00
|
|
|
const sharedNotes = new SharedNotes(browser, context);
|
2022-11-19 00:38:46 +08:00
|
|
|
await sharedNotes.initModPage(page);
|
2022-07-21 03:44:09 +08:00
|
|
|
await sharedNotes.typeInSharedNotes();
|
|
|
|
});
|
2022-11-08 00:18:52 +08:00
|
|
|
test('Formate text in shared notes', async ({ browser, page, context }) => {
|
2022-07-21 03:44:09 +08:00
|
|
|
// https://docs.bigbluebutton.org/2.5/release-tests.html#using-shared-notes-formatting-tools
|
2022-11-08 00:18:52 +08:00
|
|
|
const sharedNotes = new SharedNotes(browser, context);
|
2022-11-19 00:38:46 +08:00
|
|
|
await sharedNotes.initModPage(page);
|
2022-07-21 03:44:09 +08:00
|
|
|
await sharedNotes.formatTextInSharedNotes();
|
|
|
|
});
|
2023-02-13 22:39:04 +08:00
|
|
|
test('Export shared notes', async ({ browser, page, context }, testInfo) => {
|
2022-07-21 03:44:09 +08:00
|
|
|
// https://docs.bigbluebutton.org/2.5/release-tests.html#exporting-shared-notes
|
2022-11-08 00:18:52 +08:00
|
|
|
const sharedNotes = new SharedNotes(browser, context);
|
2022-11-19 00:38:46 +08:00
|
|
|
await sharedNotes.initModPage(page);
|
2022-11-08 00:18:52 +08:00
|
|
|
await sharedNotes.exportSharedNotes(page);
|
|
|
|
});
|
2022-11-17 02:18:03 +08:00
|
|
|
test('Convert notes to whiteboard', async ({ browser, page, context }) => {
|
2022-11-08 00:18:52 +08:00
|
|
|
const sharedNotes = new SharedNotes(browser, context);
|
|
|
|
await sharedNotes.initPages(page);
|
2022-11-17 02:18:03 +08:00
|
|
|
await sharedNotes.convertNotesToWhiteboard();
|
2022-11-08 00:18:52 +08:00
|
|
|
});
|
|
|
|
test('Multi users edit', async ({ browser, page, context }) => {
|
|
|
|
const sharedNotes = new SharedNotes(browser, context);
|
|
|
|
await sharedNotes.initPages(page);
|
|
|
|
await sharedNotes.editSharedNotesWithMoreThanOneUSer();
|
|
|
|
});
|
|
|
|
test('See notes without edit permission', async ({ browser, page, context }) => {
|
|
|
|
const sharedNotes = new SharedNotes(browser, context);
|
|
|
|
await sharedNotes.initPages(page);
|
|
|
|
await sharedNotes.seeNotesWithoutEditPermission();
|
2022-07-21 03:44:09 +08:00
|
|
|
});
|
2022-11-17 02:18:03 +08:00
|
|
|
test('Pin notes onto whiteboard', async ({ browser, page, context }) => {
|
|
|
|
const sharedNotes = new SharedNotes(browser, context);
|
|
|
|
await sharedNotes.initModPage(page);
|
2022-11-22 21:44:28 +08:00
|
|
|
await sharedNotes.initUserPage1();
|
2022-11-17 02:18:03 +08:00
|
|
|
await sharedNotes.pinNotesOntoWhiteboard();
|
|
|
|
});
|
2021-12-04 01:01:36 +08:00
|
|
|
});
|