test: update shared notes test and enable it on CI (#20415)

This commit is contained in:
Anton Barboza de Sá 2024-06-06 16:15:13 -03:00 committed by GitHub
parent df10f2f9d2
commit efcdcfcdf2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -223,13 +223,13 @@ class SharedNotes extends MultiUsers {
await this.userPage.waitAndClick(e.minimizePresentation);
await this.userPage.hasElement(e.restorePresentation);
await startSharedNotes(this.modPage);
const notesLocator = getNotesLocator(this.modPage);
await notesLocator.type('Hello');
await this.modPage.waitAndClick(e.notesOptions);
await this.modPage.waitAndClick(e.pinNotes);
await this.modPage.hasElement(e.unpinNotes);
await this.userPage.hasElement(e.minimizePresentation);
const notesLocator = getNotesLocator(this.modPage);
await notesLocator.type('Hello');
const notesLocatorUser = getNotesLocator(this.userPage);
await expect(notesLocator).toContainText(/Hello/, { timeout: 20000 });
await expect(notesLocatorUser).toContainText(/Hello/);

View File

@ -39,7 +39,7 @@ test.describe('Shared Notes', () => {
await sharedNotes.seeNotesWithoutEditPermission();
});
test('Pin and unpin notes onto whiteboard', async () => {
test('Pin and unpin notes onto whiteboard @ci', async () => {
await sharedNotes.pinAndUnpinNotesOntoWhiteboard();
});
});