Skip to content

[ACS-6435] playwright e2e for list views personal files #1895

[ACS-6435] playwright e2e for list views personal files

[ACS-6435] playwright e2e for list views personal files #1895

Triggered via pull request December 9, 2023 14:45
Status Failure
Total duration 20m 55s
Artifacts 10

pull-request.yml

on: pull_request
Matrix: unit-tests
Matrix: E2e test suites: Playwright
Matrix: e2es
Finalize
3s
Finalize
Fit to window
Zoom out
Zoom in

Annotations

24 errors, 5 warnings, and 8 notices
[Navigation] › src/tests/breadcrumb-admin.spec.ts:52:7 › as admin › [C260970] Breadcrumb on navigation to a user's home: e2e/playwright/navigation/src/tests/breadcrumb-admin.spec.ts#L55
1) [Navigation] › src/tests/breadcrumb-admin.spec.ts:52:7 › as admin › [C260970] Breadcrumb on navigation to a user's home Error: expect(received).toEqual(expected) // deep equality - Expected - 2 + Received + 0 Array [ "Personal Files", - "User Homes", - "userAdmin-169g3", "userFolder-1gjoj", ] 53 | await personalFiles.navigate({ remoteUrl: `#/personal-files/${userFolderId}` }); 54 | personalFiles.breadcrumb.getItemByTitle(username).waitFor({ state: 'attached' }); > 55 | expect(await personalFiles.breadcrumb.getAllItems()).toEqual(['Personal Files', 'User Homes', username, userFolder]); | ^ 56 | }); 57 | }); 58 | at /home/runner/work/alfresco-content-app/alfresco-content-app/e2e/playwright/navigation/src/tests/breadcrumb-admin.spec.ts:55:58
[Navigation] › src/tests/breadcrumb-admin.spec.ts:52:7 › as admin › [C260970] Breadcrumb on navigation to a user's home: e2e/playwright/navigation/src/tests/breadcrumb-admin.spec.ts#L55
1) [Navigation] › src/tests/breadcrumb-admin.spec.ts:52:7 › as admin › [C260970] Breadcrumb on navigation to a user's home Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 2 + Received + 0 Array [ "Personal Files", - "User Homes", - "userAdmin-1l2ci", "userFolder-74n4f", ] 53 | await personalFiles.navigate({ remoteUrl: `#/personal-files/${userFolderId}` }); 54 | personalFiles.breadcrumb.getItemByTitle(username).waitFor({ state: 'attached' }); > 55 | expect(await personalFiles.breadcrumb.getAllItems()).toEqual(['Personal Files', 'User Homes', username, userFolder]); | ^ 56 | }); 57 | }); 58 | at /home/runner/work/alfresco-content-app/alfresco-content-app/e2e/playwright/navigation/src/tests/breadcrumb-admin.spec.ts:55:58
[Navigation] › src/tests/breadcrumb-admin.spec.ts:52:7 › as admin › [C260970] Breadcrumb on navigation to a user's home: e2e/playwright/navigation/src/tests/breadcrumb-admin.spec.ts#L55
1) [Navigation] › src/tests/breadcrumb-admin.spec.ts:52:7 › as admin › [C260970] Breadcrumb on navigation to a user's home Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 2 + Received + 0 Array [ "Personal Files", - "User Homes", - "userAdmin-18rlb", "userFolder-1o1uq", ] 53 | await personalFiles.navigate({ remoteUrl: `#/personal-files/${userFolderId}` }); 54 | personalFiles.breadcrumb.getItemByTitle(username).waitFor({ state: 'attached' }); > 55 | expect(await personalFiles.breadcrumb.getAllItems()).toEqual(['Personal Files', 'User Homes', username, userFolder]); | ^ 56 | }); 57 | }); 58 | at /home/runner/work/alfresco-content-app/alfresco-content-app/e2e/playwright/navigation/src/tests/breadcrumb-admin.spec.ts:55:58
[Navigation] › src/tests/breadcrumb.spec.ts:119:7 › viewer action file › [C213240] Browser back navigates to previous location regardless of breadcrumb steps: e2e/playwright/navigation/src/tests/breadcrumb.spec.ts#L67
2) [Navigation] › src/tests/breadcrumb.spec.ts:119:7 › viewer action file › [C213240] Browser back navigates to previous location regardless of breadcrumb steps TypeError: Cannot read properties of null (reading 'entry') 65 | await sitesApiAction.createSite(siteName, Site.VisibilityEnum.PUBLIC); 66 | docLibId = await sitesApiAction.getDocLibId(siteName); > 67 | parentFromSiteId = (await nodesApiAction.createFolder(parentFromSite, docLibId)).entry.id; | ^ 68 | subFolder1FromSiteId = (await nodesApiAction.createFolder(subFolder1FromSite, parentFromSiteId)).entry.id; 69 | subFolder2FromSiteId = (await nodesApiAction.createFolder(subFolder2FromSite, subFolder1FromSiteId)).entry.id; 70 | await nodesApiAction.createFile(fileName1FromSite, subFolder2FromSiteId); at /home/runner/work/alfresco-content-app/alfresco-content-app/e2e/playwright/navigation/src/tests/breadcrumb.spec.ts:67:86
E2e test suites: Playwright (navigation, 5)
Process completed with exit code 1.
[Viewer] › src/tests/viewer.spec.ts:56:7 › viewer file › [C279269] Viewer opens on double clicking on a file from Personal Files: e2e/playwright/viewer/src/tests/viewer.spec.ts#L36
1) [Viewer] › src/tests/viewer.spec.ts:56:7 › viewer file › [C279269] Viewer opens on double clicking on a file from Personal Files "beforeAll" hook timeout of 45000ms exceeded. 34 | let fileDocxId: string; 35 | > 36 | test.beforeAll(async ({ fileAction, shareAction, favoritesPageAction }) => { | ^ 37 | await apiClientFactory.setUpAcaBackend('***'); 38 | const node = await apiClientFactory.nodes.createNode('-my-', { name: randomFolderName, nodeType: 'cm:folder', relativePath: '/' }); 39 | folderId = node.entry.id; at /home/runner/work/alfresco-content-app/alfresco-content-app/e2e/playwright/viewer/src/tests/viewer.spec.ts:36:8
[Viewer] › src/tests/viewer.spec.ts:56:7 › viewer file › [C279269] Viewer opens on double clicking on a file from Personal Files: e2e/playwright/viewer/src/tests/viewer.spec.ts#L36
1) [Viewer] › src/tests/viewer.spec.ts:56:7 › viewer file › [C279269] Viewer opens on double clicking on a file from Personal Files Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── "beforeAll" hook timeout of 45000ms exceeded. 34 | let fileDocxId: string; 35 | > 36 | test.beforeAll(async ({ fileAction, shareAction, favoritesPageAction }) => { | ^ 37 | await apiClientFactory.setUpAcaBackend('***'); 38 | const node = await apiClientFactory.nodes.createNode('-my-', { name: randomFolderName, nodeType: 'cm:folder', relativePath: '/' }); 39 | folderId = node.entry.id; at /home/runner/work/alfresco-content-app/alfresco-content-app/e2e/playwright/viewer/src/tests/viewer.spec.ts:36:8
[Viewer] › src/tests/viewer.spec.ts:76:7 › viewer file › [C279271] Close the viewer: e2e/playwright/viewer/src/tests/viewer.spec.ts#L36
2) [Viewer] › src/tests/viewer.spec.ts:76:7 › viewer file › [C279271] Close the viewer ─────────── "beforeAll" hook timeout of 45000ms exceeded. 34 | let fileDocxId: string; 35 | > 36 | test.beforeAll(async ({ fileAction, shareAction, favoritesPageAction }) => { | ^ 37 | await apiClientFactory.setUpAcaBackend('***'); 38 | const node = await apiClientFactory.nodes.createNode('-my-', { name: randomFolderName, nodeType: 'cm:folder', relativePath: '/' }); 39 | folderId = node.entry.id; at /home/runner/work/alfresco-content-app/alfresco-content-app/e2e/playwright/viewer/src/tests/viewer.spec.ts:36:8
[Viewer] › src/tests/viewer.spec.ts:76:7 › viewer file › [C279271] Close the viewer: e2e/playwright/viewer/src/tests/viewer.spec.ts#L36
2) [Viewer] › src/tests/viewer.spec.ts:76:7 › viewer file › [C279271] Close the viewer ─────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── "beforeAll" hook timeout of 45000ms exceeded. 34 | let fileDocxId: string; 35 | > 36 | test.beforeAll(async ({ fileAction, shareAction, favoritesPageAction }) => { | ^ 37 | await apiClientFactory.setUpAcaBackend('***'); 38 | const node = await apiClientFactory.nodes.createNode('-my-', { name: randomFolderName, nodeType: 'cm:folder', relativePath: '/' }); 39 | folderId = node.entry.id; at /home/runner/work/alfresco-content-app/alfresco-content-app/e2e/playwright/viewer/src/tests/viewer.spec.ts:36:8
[Viewer] › src/tests/viewer.spec.ts:108:7 › viewer file › [C279285] Viewer opens when accessing the preview URL for a file: e2e/playwright/viewer/src/tests/viewer.spec.ts#L36
3) [Viewer] › src/tests/viewer.spec.ts:108:7 › viewer file › [C279285] Viewer opens when accessing the preview URL for a file "beforeAll" hook timeout of 45000ms exceeded. 34 | let fileDocxId: string; 35 | > 36 | test.beforeAll(async ({ fileAction, shareAction, favoritesPageAction }) => { | ^ 37 | await apiClientFactory.setUpAcaBackend('***'); 38 | const node = await apiClientFactory.nodes.createNode('-my-', { name: randomFolderName, nodeType: 'cm:folder', relativePath: '/' }); 39 | folderId = node.entry.id; at /home/runner/work/alfresco-content-app/alfresco-content-app/e2e/playwright/viewer/src/tests/viewer.spec.ts:36:8
[special-permissions] › src/tests/viewer.ts:282:11 › Special permissions : › Consumer › on Viewer › Consumer available actions : › file opened from Shared Files › File shared - [C326660]: e2e/playwright/special-permissions-actions-available/src/tests/viewer.ts#L1
1) [special-permissions] › src/tests/viewer.ts:282:11 › Special permissions : › Consumer › on Viewer › Consumer available actions : › file opened from Shared Files › File shared - [C326660] Test timeout of 45000ms exceeded.
[special-permissions] › src/tests/viewer.ts:282:11 › Special permissions : › Consumer › on Viewer › Consumer available actions : › file opened from Shared Files › File shared - [C326660]: projects/aca-playwright-shared/src/page-objects/components/dataTable/data-table.component.ts#L174
1) [special-permissions] › src/tests/viewer.ts:282:11 › Special permissions : › Consumer › on Viewer › Consumer available actions : › file opened from Shared Files › File shared - [C326660] Error: locator.click: Page closed =========================== logs =========================== waiting for locator('adf-datatable .adf-cell-value span').filter({ hasText: 'file-dlftg-shared.txt' }) ============================================================ at ../../../projects/aca-playwright-shared/src/page-objects/components/dataTable/data-table.component.ts:174 172 | */ 173 | async performClickFolderOrFileToOpen(name: string): Promise<void> { > 174 | await this.getCellLinkByName(name).click(); | ^ 175 | await this.spinnerWaitForReload(); 176 | } 177 | at DataTableComponent.performClickFolderOrFileToOpen (/home/runner/work/alfresco-content-app/alfresco-content-app/projects/aca-playwright-shared/src/page-objects/components/dataTable/data-table.component.ts:174:40) at checkViewerActions (/home/runner/work/alfresco-content-app/alfresco-content-app/e2e/playwright/special-permissions-actions-available/src/tests/viewer.ts:255:36) at /home/runner/work/alfresco-content-app/alfresco-content-app/e2e/playwright/special-permissions-actions-available/src/tests/viewer.ts:283:9
[special-permissions] › src/tests/viewer.ts:282:11 › Special permissions : › Consumer › on Viewer › Consumer available actions : › file opened from Shared Files › File shared - [C326660]: e2e/playwright/special-permissions-actions-available/src/tests/viewer.ts#L1
1) [special-permissions] › src/tests/viewer.ts:282:11 › Special permissions : › Consumer › on Viewer › Consumer available actions : › file opened from Shared Files › File shared - [C326660] Pending operations: - locator.click at projects/aca-playwright-shared/src/page-objects/components/dataTable/data-table.component.ts:174:40
E2e test suites: Playwright (list-views, 8)
Timed out waiting 600s for the test suite to run
E2e test suites: Playwright (list-views, 8)
Timed out waiting 600s for the teardown for test suite to run
[List Views] › src/tests/shared-files.spec.ts:108:7 › Shared Files › [C213118] unshared file is not displayed: e2e/playwright/list-views/src/tests/shared-files.spec.ts#L109
1) [List Views] › src/tests/shared-files.spec.ts:108:7 › Shared Files › [C213118] unshared file is not displayed Error: file3-bgaff.txt is displayed Expected: false Received: true 107 | 108 | test('[C213118] unshared file is not displayed', async ({ sharedPage }) => { > 109 | expect(await sharedPage.dataTable.isItemPresent(file3User), `${file3User} is displayed`).toBe(false); | ^ 110 | }); 111 | 112 | test('[C213666] Location column redirect - file in user Home', async ({ sharedPage }) => { at /home/runner/work/alfresco-content-app/alfresco-content-app/e2e/playwright/list-views/src/tests/shared-files.spec.ts:109:94
[List Views] › src/tests/shared-files.spec.ts:108:7 › Shared Files › [C213118] unshared file is not displayed: e2e/playwright/list-views/src/tests/shared-files.spec.ts#L109
1) [List Views] › src/tests/shared-files.spec.ts:108:7 › Shared Files › [C213118] unshared file is not displayed Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: file3-1evwj.txt is displayed Expected: false Received: true 107 | 108 | test('[C213118] unshared file is not displayed', async ({ sharedPage }) => { > 109 | expect(await sharedPage.dataTable.isItemPresent(file3User), `${file3User} is displayed`).toBe(false); | ^ 110 | }); 111 | 112 | test('[C213666] Location column redirect - file in user Home', async ({ sharedPage }) => { at /home/runner/work/alfresco-content-app/alfresco-content-app/e2e/playwright/list-views/src/tests/shared-files.spec.ts:109:94
[List Views] › src/tests/personal-files.spec.ts:71:9 › Personal Files › Regular user's personal files › [C213245] redirects to Personal Files on clicking the link from sidebar: e2e/playwright/list-views/src/tests/personal-files.spec.ts#L1
2) [List Views] › src/tests/personal-files.spec.ts:71:9 › Personal Files › Regular user's personal files › [C213245] redirects to Personal Files on clicking the link from sidebar Test timeout of 45000ms exceeded.
[List Views] › src/tests/personal-files.spec.ts:71:9 › Personal Files › Regular user's personal files › [C213245] redirects to Personal Files on clicking the link from sidebar: projects/aca-playwright-shared/src/page-objects/components/dataTable/data-table.component.ts#L174
2) [List Views] › src/tests/personal-files.spec.ts:71:9 › Personal Files › Regular user's personal files › [C213245] redirects to Personal Files on clicking the link from sidebar Error: locator.click: Page closed =========================== logs =========================== waiting for locator('adf-datatable .adf-cell-value span').filter({ hasText: 'user-folder-2ekgj' }) ============================================================ at ../../../projects/aca-playwright-shared/src/page-objects/components/dataTable/data-table.component.ts:174 172 | */ 173 | async performClickFolderOrFileToOpen(name: string): Promise<void> { > 174 | await this.getCellLinkByName(name).click(); | ^ 175 | await this.spinnerWaitForReload(); 176 | } 177 | at DataTableComponent.performClickFolderOrFileToOpen (/home/runner/work/alfresco-content-app/alfresco-content-app/projects/aca-playwright-shared/src/page-objects/components/dataTable/data-table.component.ts:174:40) at /home/runner/work/alfresco-content-app/alfresco-content-app/e2e/playwright/list-views/src/tests/personal-files.spec.ts:72:37
[List Views] › src/tests/personal-files.spec.ts:71:9 › Personal Files › Regular user's personal files › [C213245] redirects to Personal Files on clicking the link from sidebar: e2e/playwright/list-views/src/tests/personal-files.spec.ts#L1
2) [List Views] › src/tests/personal-files.spec.ts:71:9 › Personal Files › Regular user's personal files › [C213245] redirects to Personal Files on clicking the link from sidebar Pending operations: - locator.click at projects/aca-playwright-shared/src/page-objects/components/dataTable/data-table.component.ts:174:40
[List Views] › src/tests/recent-files.spec.ts:110:7 › Recent Files › [C280486] Location column redirect - file in folder: e2e/playwright/list-views/src/tests/recent-files.spec.ts#L1
3) [List Views] › src/tests/recent-files.spec.ts:110:7 › Recent Files › [C280486] Location column redirect - file in folder Error: {"error":{"errorKey":"Person 'user-1cik9' already exists.","statusCode":409,"briefSummary":"110923338 Person 'user-1cik9' already exists.","stackTrace":"For security reasons the stack trace is no longer displayed, but the property is kept for previous versions","descriptionURL":"https://api-explorer.alfresco.com"}} at Request.callback (/home/runner/work/alfresco-content-app/alfresco-content-app/node_modules/superagent/src/node/index.js:901:17) at fn (/home/runner/work/alfresco-content-app/alfresco-content-app/node_modules/superagent/src/node/index.js:1166:18) at IncomingMessage.<anonymous> (/home/runner/work/alfresco-content-app/alfresco-content-app/node_modules/superagent/src/node/parsers/json.js:19:7)
[List Views] › src/tests/trash.spec.ts:111:9 › Trash › Regular user's personal files › [C280496] Location column redirect - file in folder: e2e/playwright/list-views/src/tests/trash.spec.ts#L1
4) [List Views] › src/tests/trash.spec.ts:111:9 › Trash › Regular user's personal files › [C280496] Location column redirect - file in folder Test timeout of 45000ms exceeded.
[List Views] › src/tests/trash.spec.ts:111:9 › Trash › Regular user's personal files › [C280496] Location column redirect - file in folder: projects/aca-playwright-shared/src/page-objects/components/dataTable/data-table.component.ts#L268
4) [List Views] › src/tests/trash.spec.ts:111:9 › Trash › Regular user's personal files › [C280496] Location column redirect - file in folder Error: locator.click: Target closed =========================== logs =========================== waiting for locator('adf-datatable adf-datatable-row').filter({ hasText: 'file-1167m.txt' }).locator('.aca-location-link') locator resolved to <aca-location-link class="aca-location-link adf-location-cell adf-d…>…</aca-location-link> attempting click action waiting for element to be visible, enabled and stable element is not visible - waiting... ============================================================ at ../../../projects/aca-playwright-shared/src/page-objects/components/dataTable/data-table.component.ts:268 266 | 267 | async clickItemLocation(name: string): Promise<void> { > 268 | await this.getItemLocationEl(name).click(); | ^ 269 | } 270 | 271 | async getSortingOrder(): Promise<string> { at DataTableComponent.clickItemLocation (/home/runner/work/alfresco-content-app/alfresco-content-app/projects/aca-playwright-shared/src/page-objects/components/dataTable/data-table.component.ts:268:40) at /home/runner/work/alfresco-content-app/alfresco-content-app/e2e/playwright/list-views/src/tests/trash.spec.ts:112:33
Finalize
Process completed with exit code 1.
E2e test suites: copyMoveActions
No files were found with the provided path: e2e-output/. No artifacts will be uploaded.
E2e test suites: Playwright (authentication, 4)
No files were found with the provided path: test-results/. No artifacts will be uploaded.
E2e test suites: Playwright (folder-rules, 2)
No files were found with the provided path: test-results/. No artifacts will be uploaded.
E2e test suites: Playwright (pagination, 7)
No files were found with the provided path: test-results/. No artifacts will be uploaded.
E2e test suites: Playwright (actions, 1)
No files were found with the provided path: test-results/. No artifacts will be uploaded.
🎭 Playwright Run Summary
5 passed (21.1s)
🎭 Playwright Run Summary
3 passed (29.0s)
🎭 Playwright Run Summary
1 failed [Navigation] › src/tests/breadcrumb-admin.spec.ts:52:7 › as admin › [C260970] Breadcrumb on navigation to a user's home 1 flaky [Navigation] › src/tests/breadcrumb.spec.ts:119:7 › viewer action file › [C213240] Browser back navigates to previous location regardless of breadcrumb steps 14 passed (1.5m)
🎭 Playwright Run Summary
11 passed (2.4m)
🎭 Playwright Run Summary
3 flaky [Viewer] › src/tests/viewer.spec.ts:56:7 › viewer file › [C279269] Viewer opens on double clicking on a file from Personal Files [Viewer] › src/tests/viewer.spec.ts:76:7 › viewer file › [C279271] Close the viewer ──────────── [Viewer] › src/tests/viewer.spec.ts:108:7 › viewer file › [C279285] Viewer opens when accessing the preview URL for a file 18 passed (4.1m)
🎭 Playwright Run Summary
1 flaky [special-permissions] › src/tests/viewer.ts:282:11 › Special permissions : › Consumer › on Viewer › Consumer available actions : › file opened from Shared Files › File shared - [C326660] 63 passed (7.3m)
🎭 Playwright Run Summary
83 passed (9.1m)
🎭 Playwright Run Summary
1 failed [List Views] › src/tests/shared-files.spec.ts:108:7 › Shared Files › [C213118] unshared file is not displayed 3 flaky [List Views] › src/tests/personal-files.spec.ts:71:9 › Personal Files › Regular user's personal files › [C213245] redirects to Personal Files on clicking the link from sidebar [List Views] › src/tests/recent-files.spec.ts:110:7 › Recent Files › [C280486] Location column redirect - file in folder [List Views] › src/tests/trash.spec.ts:111:9 › Trash › Regular user's personal files › [C280496] Location column redirect - file in folder 2 skipped 31 passed (9.9m)

Artifacts

Produced during runtime
Name Size
deleteActions Expired
2.14 MB
editActions,favoriteActions Expired
2.13 MB
list-views Expired
7.45 MB
navigation Expired
2.22 MB
search Expired
2.27 MB
shareActions Expired
2.18 MB
special-permissions Expired
1.75 MB
uploadDownloadActions Expired
2.18 MB
viewer Expired
23.6 KB
viewer,infoDrawer,extensions Expired
2.2 MB