const { test } = require('../fixtures'); const { SharedNotes } = require('./sharednotes'); const { initializePages } = require('../core/helpers'); const { fullyParallel } = require('../playwright.config'); test.describe('Shared Notes', () => { const sharedNotes = new SharedNotes(); test.describe.configure({ mode: fullyParallel ? 'parallel' : 'serial' }); test[fullyParallel ? 'beforeEach' : 'beforeAll'](async ({ browser }) => { await initializePages(sharedNotes, browser, { isMultiUser: true }); }); test('Open shared notes @ci', async () => { await sharedNotes.openSharedNotes(); }); test('Type in shared notes', async () => { await sharedNotes.typeInSharedNotes(); }); test('Formate text in shared notes', async () => { await sharedNotes.formatTextInSharedNotes(); }); test('Export shared notes @ci', async ({}, testInfo) => { await sharedNotes.exportSharedNotes(testInfo); }); test('Convert notes to whiteboard', async () => { await sharedNotes.convertNotesToWhiteboard(); }); test('Multiusers edit', async () => { await sharedNotes.editSharedNotesWithMoreThanOneUSer(); }); test('See notes without edit permission', async () => { await sharedNotes.seeNotesWithoutEditPermission(); }); test('Pin and unpin notes onto whiteboard', async () => { await sharedNotes.pinAndUnpinNotesOntoWhiteboard(); }); });