2021-11-30 02:39:52 +08:00
|
|
|
const { test } = require('@playwright/test');
|
2023-02-14 21:59:46 +08:00
|
|
|
const { SharedNotes } = require('./sharednotes');
|
2021-11-30 02:39:52 +08:00
|
|
|
|
|
|
|
test.describe.parallel('Shared Notes', () => {
|
2023-03-07 02:40:08 +08:00
|
|
|
test.fixme('Open Shared notes @ci', async ({ browser, page, context }) => {
|
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);
|
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();
|
|
|
|
});
|
2022-11-08 00:18:52 +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);
|
2023-02-16 02:41:21 +08:00
|
|
|
await sharedNotes.exportSharedNotes(testInfo);
|
2022-11-08 00:18:52 +08:00
|
|
|
});
|
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
|
|
|
});
|