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

45 lines
1.3 KiB
JavaScript
Raw Normal View History

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', () => {
const sharedNotes = new SharedNotes();
test.beforeAll(async ({ browser }) => {
const context = await browser.newContext();
const page = await context.newPage();
await sharedNotes.initModPage(page, true);
await sharedNotes.initUserPage(true, context);
});
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) => {
2023-02-16 02:41:21 +08:00
await sharedNotes.exportSharedNotes(testInfo);
2022-11-08 00:18:52 +08:00
});
test('Convert notes to whiteboard', 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', async () => {
await sharedNotes.pinAndUnpinNotesOntoWhiteboard();
2022-11-17 02:18:03 +08:00
});
2021-12-04 01:01:36 +08:00
});