[ACS-8063] Migrate editActions e2e from Protractor to Playwright #3137
Annotations
3 errors, 1 warning, and 1 notice
e2e/playwright/library-actions/src/tests/library-actions.e2e.ts#L209
1) [Library Actions] › src/tests/library-actions.e2e.ts:207:9 › Library actions › My Libraries page › [C289974] Mark library as favorite from My Libraries
Error: Timed out 5000ms waiting for expect(locator).toBeVisible()
Locator: locator('adf-datatable adf-datatable-row').filter({ hasText: 'playwright-A-library-f6o1i' }).locator('[title="Contributor"]')
Expected: visible
Received: <element(s) not found>
Call log:
- expect.toBeVisible with timeout 5000ms
- waiting for locator('adf-datatable adf-datatable-row').filter({ hasText: 'playwright-A-library-f6o1i' }).locator('[title="Contributor"]')
207 | test('[C289974] Mark library as favorite from My Libraries', async ({ myLibrariesPage }) => {
208 | await Utils.reloadPageIfRowNotVisible(myLibrariesPage, adminLibrary3);
> 209 | await expect(libraryTable.getCellByColumnNameAndRowItem(adminLibrary3, contributorRole)).toBeVisible();
| ^
210 | await libraryTable.getCellByColumnNameAndRowItem(adminLibrary3, contributorRole).click();
211 | await myLibrariesHeader.clickMoreActions();
212 | await libraryMenu.clickMenuItem(favoriteButton);
at /home/runner/work/alfresco-content-app/alfresco-content-app/e2e/playwright/library-actions/src/tests/library-actions.e2e.ts:209:96
|
e2e/playwright/library-actions/src/tests/library-actions.e2e.ts#L278
2) [Library Actions] › src/tests/library-actions.e2e.ts:268:9 › Library actions › Favorite Libraries page › [C290109] Join a moderated library from Favorite Libraries
Error: Timed out 5000ms waiting for expect(locator).toBeVisible()
Locator: locator('adf-datatable adf-datatable-row').filter({ hasText: 'playwright-Am-library-1rdcy' }).locator('[title="Consumer"]')
Expected: visible
Received: <element(s) not found>
Call log:
- expect.toBeVisible with timeout 5000ms
- waiting for locator('adf-datatable adf-datatable-row').filter({ hasText: 'playwright-Am-library-1rdcy' }).locator('[title="Consumer"]')
276 | await adminSitesApi.approveSiteMembershipRequest(adminModerateLibrary1, username2);
277 | await favoriteLibrariesPage.page.reload({ waitUntil: 'load' });
> 278 | await expect(libraryTable.getCellByColumnNameAndRowItem(adminModerateLibrary1, consumerRole)).toBeVisible();
| ^
279 | });
280 |
281 | test('[C290110] Leave a library from Favorite Libraries', async ({ favoriteLibrariesPage }) => {
at /home/runner/work/alfresco-content-app/alfresco-content-app/e2e/playwright/library-actions/src/tests/library-actions.e2e.ts:278:101
|
e2e/playwright/library-actions/src/tests/library-actions.e2e.ts#L388
3) [Library Actions] › src/tests/library-actions.e2e.ts:384:9 › Library actions › Search Page › [C306962] Cancel join from Search Results
Error: Timed out 5000ms waiting for expect(locator).toBeVisible()
Locator: locator('adf-datatable adf-datatable-row').filter({ hasText: 'playwright-Am-library-w2ih1' }).locator('[title="Not a member"]')
Expected: visible
Received: <element(s) not found>
Call log:
- expect.toBeVisible with timeout 5000ms
- waiting for locator('adf-datatable adf-datatable-row').filter({ hasText: 'playwright-Am-library-w2ih1' }).locator('[title="Not a member"]')
386 | await searchPage.navigate({ remoteUrl: `#/search-libraries;q=${adminModerateLibrary4}` });
387 | await Utils.reloadPageIfRowNotVisible(searchPage, adminModerateLibrary4);
> 388 | await expect(libraryTable.getCellByColumnNameAndRowItem(adminModerateLibrary4, notMemberString)).toBeVisible();
| ^
389 | await libraryTable.performActionFromExpandableMenu(adminModerateLibrary4, cancelJoinRequestButton);
390 | await expect.soft(snackBar.getByMessageLocator(cancelJoinRequestMessage)).toBeVisible();
391 | const hasJoinRequest = await user2SitesApi.hasMembershipRequest(username2, adminModerateLibrary4);
at /home/runner/work/alfresco-content-app/alfresco-content-app/e2e/playwright/library-actions/src/tests/library-actions.e2e.ts:388:104
|
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3, actions/cache/restore@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
3 flaky
[Library Actions] › src/tests/library-actions.e2e.ts:207:9 › Library actions › My Libraries page › [C289974] Mark library as favorite from My Libraries
[Library Actions] › src/tests/library-actions.e2e.ts:268:9 › Library actions › Favorite Libraries page › [C290109] Join a moderated library from Favorite Libraries
[Library Actions] › src/tests/library-actions.e2e.ts:384:9 › Library actions › Search Page › [C306962] Cancel join from Search Results
16 passed (7.2m)
|
This job succeeded
Loading