bigbluebutton-Github/bigbluebutton-tests/playwright/sharednotes/sharednotes.spec.js

47 lines
1.5 KiB
JavaScript
Raw Normal View History

const { test } = require('../fixtures');
2023-02-14 21:59:46 +08:00
const { SharedNotes } = require('./sharednotes');
const { linkIssue, initializePages } = require('../core/helpers');
const { fullyParallel } = require('../playwright.config');
2021-11-30 02:39:52 +08:00
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 });
});
2024-07-08 21:42:57 +08:00
test('Open shared notes', { tag: '@ci' }, async () => {
await sharedNotes.openSharedNotes();
});
2024-07-08 21:42:57 +08:00
test('Type in shared notes', { tag: '@ci' }, async () => {
await sharedNotes.typeInSharedNotes();
});
2024-07-08 21:42:57 +08:00
test('Formate text in shared notes', { tag: '@ci' }, async () => {
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
});
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
});
test('Multiusers edit', async () => {
2022-11-08 00:18:52 +08:00
await sharedNotes.editSharedNotesWithMoreThanOneUSer();
});
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
});
test('Pin and unpin notes onto whiteboard', { tag: '@flaky' }, async () => {
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
});