changes on pin notes test

This commit is contained in:
Gabriel Porfirio 2022-11-18 13:38:46 -03:00
parent 35e5236683
commit 60db3182c2
2 changed files with 7 additions and 6 deletions

View File

@ -17,7 +17,6 @@ class SharedNotes extends MultiUsers {
const { sharedNotesEnabled } = getSettings();
test.fail(!sharedNotesEnabled, 'Shared notes is disabled');
await startSharedNotes(this.modPage);
await startSharedNotes(this.userPage);
}
async editMessage(notesLocator) {
@ -177,14 +176,15 @@ class SharedNotes extends MultiUsers {
test.fail(!sharedNotesEnabled, 'Shared notes is disabled');
await startSharedNotes(this.modPage);
// /await this.modPage.hasElement(e.sharedNotes);
await this.modPage.waitAndClick(e.notesOptions);
await this.modPage.waitAndClick(e.pinNotes);
await this.modPage.hasElement(e.unpinNotes);
const notesLocator = getNotesLocator(this.modPage);
await notesLocator.type('Hello');
const notesLocatorUser = getNotesLocator(this.modPage2);
await expect(notesLocator).toContainText(/Hello/, { timeout : 20000 });
await expect(notesLocatorUser).toContainText(/Hello/);
}
}

View File

@ -4,25 +4,25 @@ const { SharedNotes, SharedNotesMultiUsers } = require('./sharednotes');
test.describe.parallel('Shared Notes', () => {
test('Open Shared notes @ci', async ({ browser, page, context }) => {
const sharedNotes = new SharedNotes(browser, context);
await sharedNotes.initPages(page);
await sharedNotes.initModPage(page);
await sharedNotes.openSharedNotes();
});
test('Type in shared notes', async ({ browser, page, context }) => {
// https://docs.bigbluebutton.org/2.5/release-tests.html#using-shared-notes-panel
const sharedNotes = new SharedNotes(browser, context);
await sharedNotes.initPages(page);
await sharedNotes.initModPage(page);
await sharedNotes.typeInSharedNotes();
});
test('Formate text in shared notes', async ({ browser, page, context }) => {
// https://docs.bigbluebutton.org/2.5/release-tests.html#using-shared-notes-formatting-tools
const sharedNotes = new SharedNotes(browser, context);
await sharedNotes.initPages(page);
await sharedNotes.initModPage(page);
await sharedNotes.formatTextInSharedNotes();
});
test('Export shared notes', async ({ browser, page, context }, testInfo) => {
// https://docs.bigbluebutton.org/2.5/release-tests.html#exporting-shared-notes
const sharedNotes = new SharedNotes(browser, context);
await sharedNotes.initPages(page);
await sharedNotes.initModPage(page);
await sharedNotes.exportSharedNotes(page);
});
test('Convert notes to whiteboard', async ({ browser, page, context }) => {
@ -43,6 +43,7 @@ test.describe.parallel('Shared Notes', () => {
test('Pin notes onto whiteboard', async ({ browser, page, context }) => {
const sharedNotes = new SharedNotes(browser, context);
await sharedNotes.initModPage(page);
await sharedNotes.initModPage2();
await sharedNotes.pinNotesOntoWhiteboard();
});
});