2024-03-06 22:26:03 +08:00
|
|
|
const { test } = require('../fixtures');
|
2023-02-14 21:59:46 +08:00
|
|
|
const { SharedNotes } = require('./sharednotes');
|
2024-08-10 02:19:21 +08:00
|
|
|
const { linkIssue, initializePages } = require('../core/helpers');
|
2024-01-20 00:42:01 +08:00
|
|
|
const { fullyParallel } = require('../playwright.config');
|
2021-11-30 02:39:52 +08:00
|
|
|
|
2024-01-20 00:42:01 +08:00
|
|
|
test.describe('Shared Notes', () => {
|
2023-05-10 00:37:38 +08:00
|
|
|
const sharedNotes = new SharedNotes();
|
|
|
|
|
2024-01-20 00:42:01 +08:00
|
|
|
test.describe.configure({ mode: fullyParallel ? 'parallel' : 'serial' });
|
|
|
|
test[fullyParallel ? 'beforeEach' : 'beforeAll'](async ({ browser }) => {
|
|
|
|
await initializePages(sharedNotes, browser, { isMultiUser: true });
|
2023-05-10 00:37:38 +08:00
|
|
|
});
|
2024-01-20 00:42:01 +08:00
|
|
|
|
2024-07-08 21:42:57 +08:00
|
|
|
test('Open shared notes', { tag: '@ci' }, async () => {
|
2023-05-10 00:37:38 +08:00
|
|
|
await sharedNotes.openSharedNotes();
|
|
|
|
});
|
|
|
|
|
2024-07-08 21:42:57 +08:00
|
|
|
test('Type in shared notes', { tag: '@ci' }, async () => {
|
2023-05-10 00:37:38 +08:00
|
|
|
await sharedNotes.typeInSharedNotes();
|
|
|
|
});
|
|
|
|
|
2024-07-08 21:42:57 +08:00
|
|
|
test('Formate text in shared notes', { tag: '@ci' }, async () => {
|
2023-05-10 00:37:38 +08:00
|
|
|
await sharedNotes.formatTextInSharedNotes();
|
|
|
|
});
|
|
|
|
|
2024-07-08 21:42:57 +08:00
|
|
|
test('Export shared notes', { tag: '@ci' }, async ({}, testInfo) => {
|
2023-02-16 02:41:21 +08:00
|
|
|
await sharedNotes.exportSharedNotes(testInfo);
|
2022-11-08 00:18:52 +08:00
|
|
|
});
|
2023-05-13 02:02:27 +08:00
|
|
|
|
2024-07-08 21:42:57 +08:00
|
|
|
test('Convert notes to presentation', { tag: '@ci' }, async () => {
|
2022-11-17 02:18:03 +08:00
|
|
|
await sharedNotes.convertNotesToWhiteboard();
|
2022-11-08 00:18:52 +08:00
|
|
|
});
|
2023-05-13 02:02:27 +08:00
|
|
|
|
|
|
|
test('Multiusers edit', async () => {
|
2022-11-08 00:18:52 +08:00
|
|
|
await sharedNotes.editSharedNotesWithMoreThanOneUSer();
|
|
|
|
});
|
2023-05-13 02:02:27 +08:00
|
|
|
|
|
|
|
test('See notes without edit permission', async () => {
|
2022-11-08 00:18:52 +08:00
|
|
|
await sharedNotes.seeNotesWithoutEditPermission();
|
2022-07-21 03:44:09 +08:00
|
|
|
});
|
2023-05-13 02:02:27 +08:00
|
|
|
|
2024-08-24 01:32:58 +08:00
|
|
|
test('Pin and unpin notes onto whiteboard', { tag: [ '@ci', '@flaky' ] }, async () => {
|
2024-08-10 02:19:21 +08:00
|
|
|
linkIssue('20892');
|
2023-07-31 22:24:25 +08:00
|
|
|
await sharedNotes.pinAndUnpinNotesOntoWhiteboard();
|
2022-11-17 02:18:03 +08:00
|
|
|
});
|
2021-12-04 01:01:36 +08:00
|
|
|
});
|