Skip to content

SonarCloud fixes

SonarCloud fixes #3905

Re-run triggered November 13, 2024 13:06
Status Success
Total duration 5m 12s
Artifacts

pull-request.yml

on: pull_request
Matrix: e2es-playwright
Finalize
5s
Finalize
Fit to window
Zoom out
Zoom in

Annotations

12 errors, 4 warnings, and 17 notices
[Create Actions] › src/tests/create-library.e2e.ts:117:9 › Create Libraries › On My Libraries dataTable › [C280025] Create a public library: e2e/playwright/create-actions/src/tests/create-library.e2e.ts#L122
1) [Create Actions] › src/tests/create-library.e2e.ts:117:9 › Create Libraries › On My Libraries dataTable › [C280025] Create a public library Error: Timed out 5000ms waiting for expect(locator).toBeVisible() Locator: locator('adf-breadcrumb .adf-breadcrumb-item[title=playwright-library-1vzn5]') Expected: visible Received: <element(s) not found> Call log: - expect.toBeVisible with timeout 5000ms - waiting for locator('adf-breadcrumb .adf-breadcrumb-item[title=playwright-library-1vzn5]') 120 | await expect(libraryDialog.getLabelText(libraryIdLabel)).toHaveValue(randomLibraryName); 121 | await libraryDialog.createButton.click(); > 122 | await expect(libraryBreadcrumb.getItemByTitle(randomLibraryName)).toBeVisible(); | ^ 123 | 124 | await myLibrariesPage.navigate(); 125 | await expect(libraryTable.getCellByColumnNameAndRowItem(randomLibraryName, publicVisibility)).toBeVisible(); at /home/runner/work/alfresco-content-app/alfresco-content-app/e2e/playwright/create-actions/src/tests/create-library.e2e.ts:122:73
[Viewer] › src/tests/viewer-file-types.e2e.ts:149:7 › viewer file types › [XAT-5486] User can close the thumbnail pane: e2e/playwright/viewer/src/tests/viewer-file-types.e2e.ts#L1
1) [Viewer] › src/tests/viewer-file-types.e2e.ts:149:7 › viewer file types › [XAT-5486] User can close the thumbnail pane Error: {"error":{"errorKey":"Person 'user-ofkhi' already exists.","statusCode":409,"briefSummary":"10136348 Person 'user-ofkhi' 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","logId":"e4ba8e4d-83eb-496b-ba8e-4d83ebd96b71"}} at Request.callback (/home/runner/work/alfresco-content-app/alfresco-content-app/node_modules/superagent/src/node/index.js:875:17) at fn (/home/runner/work/alfresco-content-app/alfresco-content-app/node_modules/superagent/src/node/index.js:1165: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/permissions.e2e.ts:169:9 › Special permissions › Location column is empty if user doesn't have permissions on the file's parent folder › [C213178] on Recent Files: e2e/playwright/list-views/src/tests/permissions.e2e.ts#L171
1) [List Views] › src/tests/permissions.e2e.ts:169:9 › Special permissions › Location column is empty if user doesn't have permissions on the file's parent folder › [C213178] on Recent Files Error: Incorrect number of items expect(received).toBe(expected) // Object.is equality Expected: 1 Received: 2 169 | test('[C213178] on Recent Files', async ({ recentFilesPage }) => { 170 | await recentFilesPage.navigate(); > 171 | expect(await recentFilesPage.dataTable.getRowsCount(), 'Incorrect number of items').toBe(1); | ^ 172 | expect(await recentFilesPage.dataTable.getItemLocationText(fileName)).toEqual('Unknown'); 173 | }); 174 | at /home/runner/work/alfresco-content-app/alfresco-content-app/e2e/playwright/list-views/src/tests/permissions.e2e.ts:171:91
[List Views] › src/tests/recent-files.e2e.ts:100:7 › Recent Files › [C280486] Location column redirect - file in folder: e2e/playwright/list-views/src/tests/recent-files.e2e.ts#L1
2) [List Views] › src/tests/recent-files.e2e.ts:100:7 › Recent Files › [C280486] Location column redirect - file in folder Error: {"error":{"errorKey":"Person 'user-sheq1' already exists.","statusCode":409,"briefSummary":"10136384 Person 'user-sheq1' 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","logId":"78aad456-b4c8-4894-aad4-56b4c8f89467"}} at Request.callback (/home/runner/work/alfresco-content-app/alfresco-content-app/node_modules/superagent/src/node/index.js:875:17) at fn (/home/runner/work/alfresco-content-app/alfresco-content-app/node_modules/superagent/src/node/index.js:1165: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.e2e.ts:102:9 › Trash › Regular user's personal files › [C280496] Location column redirect - file in folder: e2e/playwright/list-views/src/tests/trash.e2e.ts#L1
3) [List Views] › src/tests/trash.e2e.ts:102:9 › Trash › Regular user's personal files › [C280496] Location column redirect - file in folder Test timeout of 85000ms exceeded.
[List Views] › src/tests/trash.e2e.ts:102: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#L291
3) [List Views] › src/tests/trash.e2e.ts:102:9 › Trash › Regular user's personal files › [C280496] Location column redirect - file in folder Error: locator.click: Test timeout of 85000ms exceeded. Call log: - waiting for locator('adf-datatable adf-datatable-row').filter({ hasText: 'file-hybhi.txt' }).locator('.aca-location-link') at ../../../projects/aca-playwright-shared/src/page-objects/components/dataTable/data-table.component.ts:291 289 | 290 | async clickItemLocation(name: string): Promise<void> { > 291 | await this.getItemLocationEl(name).click(); | ^ 292 | } 293 | 294 | 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:291:40) at /home/runner/work/alfresco-content-app/alfresco-content-app/e2e/playwright/list-views/src/tests/trash.e2e.ts:103:33
[Library Actions] › src/tests/library-actions.e2e.ts:337:9 › Library actions › Search Page › [C306959] Join a public library from Search Results: e2e/playwright/library-actions/src/tests/library-actions.e2e.ts#L340
1) [Library Actions] › src/tests/library-actions.e2e.ts:337:9 › Library actions › Search Page › [C306959] Join a public library from Search Results Error: Timed out 5000ms waiting for expect(locator).toBeVisible() Locator: locator('adf-datatable adf-datatable-row').filter({ hasText: 'playwright-A-library-10d8e' }).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-A-library-10d8e' }).locator('[title="Not a member"]') 338 | await searchPage.searchWithin(adminLibrary2, 'libraries'); 339 | await searchPage.reload({ waitUntil: loadString }); > 340 | await expect(libraryTable.getCellByColumnNameAndRowItem(adminLibrary2, notMemberString)).toBeVisible(); | ^ 341 | await libraryTable.performActionFromExpandableMenu(adminLibrary2, joinButton); 342 | await expect.soft(snackBar.getByMessageLocator(libraryJoinedMessage)).toBeVisible(); 343 | await expect(libraryTable.getCellByColumnNameAndRowItem(adminLibrary2, consumerRole)).toBeVisible(); at /home/runner/work/alfresco-content-app/alfresco-content-app/e2e/playwright/library-actions/src/tests/library-actions.e2e.ts:340:96
[Search] › src/tests/search-filters-logic.e2e.ts:146:7 › Search - Filters - Logic › [C699504] Filter with all options: e2e/playwright/search/src/tests/search-filters-logic.e2e.ts#L157
1) [Search] › src/tests/search-filters-logic.e2e.ts:146:7 › Search - Filters - Logic › [C699504] Filter with all options Error: expect(received).toBe(expected) // Object.is equality Expected: 1 Received: 0 155 | await searchPage.dataTable.progressBarWaitForReload(); 156 | > 157 | expect(await searchPage.dataTable.getRowsCount()).toBe(1); | ^ 158 | await expect(searchPage.dataTable.getRowByName(logicFile1.name)).toBeHidden(); 159 | await expect(searchPage.dataTable.getRowByName(logicFile2.name)).toBeVisible(); 160 | }); at /home/runner/work/alfresco-content-app/alfresco-content-app/e2e/playwright/search/src/tests/search-filters-logic.e2e.ts:157:55
[Search] › src/tests/search-filters-properties.e2e.ts:69:7 › Search - Filters - Properties › [C699046-2] Filter by size - At most 1MB: e2e/playwright/search/src/tests/search-filters-properties.e2e.ts#L74
2) [Search] › src/tests/search-filters-properties.e2e.ts:69:7 › Search - Filters - Properties › [C699046-2] Filter by size - At most 1MB Error: Timed out 5000ms waiting for expect(locator).toBeVisible() Locator: locator('adf-datatable adf-datatable-row').filter({ hasText: '1gb68-fileNameKb.pdf' }) Expected: visible Received: <element(s) not found> Call log: - expect.toBeVisible with timeout 5000ms - waiting for locator('adf-datatable adf-datatable-row').filter({ hasText: '1gb68-fileNameKb.pdf' }) 72 | 73 | await expect(searchPage.searchFilters.propertiesFilter).toContainText('Properties: At Most 1 MB'); > 74 | await expect(searchPage.dataTable.getRowByName(fileNamePdfKb)).toBeVisible(); | ^ 75 | await expect(searchPage.dataTable.getRowByName(fileNameJpgMb)).toBeHidden(); 76 | }); 77 | at /home/runner/work/alfresco-content-app/alfresco-content-app/e2e/playwright/search/src/tests/search-filters-properties.e2e.ts:74:68
[Search] › src/tests/search-filters-properties.e2e.ts:87:7 › Search - Filters - Properties › [C699047] Filter by type: e2e/playwright/search/src/tests/search-filters-properties.e2e.ts#L91
3) [Search] › src/tests/search-filters-properties.e2e.ts:87:7 › Search - Filters - Properties › [C699047] Filter by type Error: Timed out 5000ms waiting for expect(locator).toContainText(expected) Locator: locator('adf-search-widget-chip').filter({ hasText: 'Properties' }) Expected string: "Properties: pdf" Received string: "Properties:  3g2 keyboard_arrow_down" Call log: - expect.toContainText with timeout 5000ms - waiting for locator('adf-search-widget-chip').filter({ hasText: 'Properties' }) - locator resolved to <adf-search-widget-chip class="ng-star-inserted" ng-reflect-category="[object Object]">…</adf-search-widget-chip> - unexpected value "Properties:  3g2 keyboard_arrow_down" - locator resolved to <adf-search-widget-chip class="ng-star-inserted" ng-reflect-category="[object Object]">…</adf-search-widget-chip> - unexpected value "Properties:  3g2 keyboard_arrow_down" - locator resolved to <adf-search-widget-chip class="ng-star-inserted" ng-reflect-category="[object Object]">…</adf-search-widget-chip> - unexpected value "Properties:  3g2 keyboard_arrow_down" - locator resolved to <adf-search-widget-chip class="ng-star-inserted" ng-reflect-category="[object Object]">…</adf-search-widget-chip> - unexpected value "Properties:  3g2 keyboard_arrow_down" - locator resolved to <adf-search-widget-chip class="ng-star-inserted" ng-reflect-category="[object Object]">…</adf-search-widget-chip> - unexpected value "Properties:  3g2 keyboard_arrow_down" - locator resolved to <adf-search-widget-chip class="ng-star-inserted" ng-reflect-category="[object Object]">…</adf-search-widget-chip> - unexpected value "Properties:  3g2 keyboard_arrow_down" - locator resolved to <adf-search-widget-chip class="ng-star-inserted" ng-reflect-category="[object Object]">…</adf-search-widget-chip> - unexpected value "Properties:  3g2 keyboard_arrow_down" - locator resolved to <adf-search-widget-chip class="ng-star-inserted" ng-reflect-category="[object Object]">…</adf-search-widget-chip> - unexpected value "Properties:  3g2 keyboard_arrow_down" - locator resolved to <adf-search-widget-chip class="ng-star-inserted" ng-reflect-category="[object Object]">…</adf-search-widget-chip> - unexpected value "Properties:  3g2 keyboard_arrow_down" 89 | await searchPage.searchFiltersProperties.setPropertiesParameters(searchPage, undefined, undefined, undefined, 'pdf'); 90 | > 91 | await expect(searchPage.searchFilters.propertiesFilter).toContainText('Properties: pdf'); | ^ 92 | await expect(searchPage.dataTable.getRowByName(fileNamePdfKb)).toBeVisible(); 93 | await expect(searchPage.dataTable.getRowByName(fileNameJpgMb)).toBeHidden(); 94 | }); at /home/runner/work/alfresco-content-app/alfresco-content-app/e2e/playwright/search/src/tests/search-filters-properties.e2e.ts:91:61
[Copy Move Actions] › src/tests/destination-picker-dialog.e2e.ts:96:7 › Copy Move actions › [C263878] Collaborator user can select the folder as destination: e2e/playwright/copy-move-actions/src/tests/destination-picker-dialog.e2e.ts#L1
1) [Copy Move Actions] › src/tests/destination-picker-dialog.e2e.ts:96:7 › Copy Move actions › [C263878] Collaborator user can select the folder as destination Test timeout of 150000ms exceeded.
[Copy Move Actions] › src/tests/destination-picker-dialog.e2e.ts:96:7 › Copy Move actions › [C263878] Collaborator user can select the folder as destination: projects/aca-playwright-shared/src/page-objects/components/dataTable/data-table.component.ts#L204
1) [Copy Move Actions] › src/tests/destination-picker-dialog.e2e.ts:96:7 › Copy Move actions › [C263878] Collaborator user can select the folder as destination Error: locator.click: Test timeout of 150000ms exceeded. Call log: - waiting for locator('adf-datatable .adf-cell-value span[role="link"]').filter({ hasText: 'site-16kdt' }) at ../../../projects/aca-playwright-shared/src/page-objects/components/dataTable/data-table.component.ts:204 202 | */ 203 | async performClickFolderOrFileToOpen(name: string): Promise<void> { > 204 | await this.getCellLinkByName(name).click(); | ^ 205 | await this.spinnerWaitForReload(); 206 | } 207 | 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:204:40) at copyContentInMyLibraries (/home/runner/work/alfresco-content-app/alfresco-content-app/e2e/playwright/copy-move-actions/src/tests/destination-picker-dialog.e2e.ts:76:37) at /home/runner/work/alfresco-content-app/alfresco-content-app/e2e/playwright/copy-move-actions/src/tests/destination-picker-dialog.e2e.ts:99:11
Slow Test: [Authentication] › src/tests/general.e2e.ts#L1
[Authentication] › src/tests/general.e2e.ts took 15.6s
Slow Test: [Viewer] › src/tests/viewer-useraction.e2e.ts#L1
[Viewer] › src/tests/viewer-useraction.e2e.ts took 25.2s
Slow Test: [Search] › src/tests/search-filters-general.e2e.ts#L1
[Search] › src/tests/search-filters-general.e2e.ts took 33.7s
Slow Test: [Info Drawer] › src/tests/general.e2e.ts#L1
[Info Drawer] › src/tests/general.e2e.ts took 20.4s
🎭 Playwright Run Summary
1 flaky [Create Actions] › src/tests/create-library.e2e.ts:117:9 › Create Libraries › On My Libraries dataTable › [C280025] Create a public library 19 passed (2.6m)
🎭 Playwright Run Summary
6 passed (29.4s)
🎭 Playwright Run Summary
24 passed (3.7m)
🎭 Playwright Run Summary
1 flaky [Viewer] › src/tests/viewer-file-types.e2e.ts:149:7 › viewer file types › [XAT-5486] User can close the thumbnail pane 33 passed (4.1m)
🎭 Playwright Run Summary
64 passed (5.8m)
🎭 Playwright Run Summary
16 passed (1.7m)
🎭 Playwright Run Summary
3 flaky [List Views] › src/tests/permissions.e2e.ts:169:9 › Special permissions › Location column is empty if user doesn't have permissions on the file's parent folder › [C213178] on Recent Files [List Views] › src/tests/recent-files.e2e.ts:100:7 › Recent Files › [C280486] Location column redirect - file in folder [List Views] › src/tests/trash.e2e.ts:102:9 › Trash › Regular user's personal files › [C280496] Location column redirect - file in folder 64 passed (8.8m)
🎭 Playwright Run Summary
11 passed (3.1m)
🎭 Playwright Run Summary
15 passed (2.2m)
🎭 Playwright Run Summary
1 flaky [Library Actions] › src/tests/library-actions.e2e.ts:337:9 › Library actions › Search Page › [C306959] Join a public library from Search Results 18 passed (6.8m)
🎭 Playwright Run Summary
3 flaky [Search] › src/tests/search-filters-logic.e2e.ts:146:7 › Search - Filters - Logic › [C699504] Filter with all options [Search] › src/tests/search-filters-properties.e2e.ts:69:7 › Search - Filters - Properties › [C699046-2] Filter by size - At most 1MB [Search] › src/tests/search-filters-properties.e2e.ts:87:7 › Search - Filters - Properties › [C699047] Filter by type 46 passed (6.3m)
🎭 Playwright Run Summary
1 flaky [Copy Move Actions] › src/tests/destination-picker-dialog.e2e.ts:96:7 › Copy Move actions › [C263878] Collaborator user can select the folder as destination 22 passed (6.7m)
🎭 Playwright Run Summary
9 passed (1.3m)
🎭 Playwright Run Summary
29 passed (3.4m)
🎭 Playwright Run Summary
11 passed (1.4m)
🎭 Playwright Run Summary
23 passed (3.7m)
🎭 Playwright Run Summary
25 passed (2.1m)