[ACS-9154] Fix unstable tests in ACA after migration to local ACS #4259
pull-request.yml
on: pull_request
Annotations
20 errors, 9 warnings, and 17 notices
[Navigation] › src/tests/single-click.e2e.ts:83:7 › Single click on item name › [C284902] Navigate inside the library when clicking the hyperlink on File Libraries:
e2e/playwright/navigation/src/tests/single-click.e2e.ts#L1
1) [Navigation] › src/tests/single-click.e2e.ts:83:7 › Single click on item name › [C284902] Navigate inside the library when clicking the hyperlink on File Libraries
Error: {"error":{"errorKey":"Person 'user-11hvl' already exists.","statusCode":409,"briefSummary":"00270012 Person 'user-11hvl' 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":"1e2c05d8-6f11-4c78-ac05-d86f11fc78b2"}}
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)
|
[Edit Actions] › src/tests/edit-offline.e2e.ts:73:7 › Edit offline - on Personal Files › [XAT-5304] File is locked and downloaded when clicking Edit offline:
e2e/playwright/edit-actions/src/tests/edit-offline.e2e.ts#L77
1) [Edit Actions] › src/tests/edit-offline.e2e.ts:73:7 › Edit offline - on Personal Files › [XAT-5304] File is locked and downloaded when clicking Edit offline
TimeoutError: page.waitForEvent: Timeout 5000ms exceeded while waiting for event "download"
=========================== logs ===========================
waiting for event "download"
============================================================
75 | await personalFiles.acaHeader.clickMoreActions();
76 | await personalFiles.matMenu.clickMenuItem('Edit Offline');
> 77 | const [download] = await Promise.all([personalFiles.page.waitForEvent('download', { timeout: 5000 })]);
| ^
78 | expect(download.suggestedFilename()).toBe(file1);
79 | });
80 |
at /home/runner/work/alfresco-content-app/alfresco-content-app/e2e/playwright/edit-actions/src/tests/edit-offline.e2e.ts:77:62
|
[Edit Actions] › src/tests/edit-offline.e2e.ts:73:7 › Edit offline - on Personal Files › [XAT-5304] File is locked and downloaded when clicking Edit offline:
e2e/playwright/edit-actions/src/tests/edit-offline.e2e.ts#L77
1) [Edit Actions] › src/tests/edit-offline.e2e.ts:73:7 › Edit offline - on Personal Files › [XAT-5304] File is locked and downloaded when clicking Edit offline
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: page.waitForEvent: Timeout 5000ms exceeded while waiting for event "download"
=========================== logs ===========================
waiting for event "download"
============================================================
75 | await personalFiles.acaHeader.clickMoreActions();
76 | await personalFiles.matMenu.clickMenuItem('Edit Offline');
> 77 | const [download] = await Promise.all([personalFiles.page.waitForEvent('download', { timeout: 5000 })]);
| ^
78 | expect(download.suggestedFilename()).toBe(file1);
79 | });
80 |
at /home/runner/work/alfresco-content-app/alfresco-content-app/e2e/playwright/edit-actions/src/tests/edit-offline.e2e.ts:77:62
|
[Edit Actions] › src/tests/edit-offline.e2e.ts:73:7 › Edit offline - on Personal Files › [XAT-5304] File is locked and downloaded when clicking Edit offline:
e2e/playwright/edit-actions/src/tests/edit-offline.e2e.ts#L77
1) [Edit Actions] › src/tests/edit-offline.e2e.ts:73:7 › Edit offline - on Personal Files › [XAT-5304] File is locked and downloaded when clicking Edit offline
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: page.waitForEvent: Timeout 5000ms exceeded while waiting for event "download"
=========================== logs ===========================
waiting for event "download"
============================================================
75 | await personalFiles.acaHeader.clickMoreActions();
76 | await personalFiles.matMenu.clickMenuItem('Edit Offline');
> 77 | const [download] = await Promise.all([personalFiles.page.waitForEvent('download', { timeout: 5000 })]);
| ^
78 | expect(download.suggestedFilename()).toBe(file1);
79 | });
80 |
at /home/runner/work/alfresco-content-app/alfresco-content-app/e2e/playwright/edit-actions/src/tests/edit-offline.e2e.ts:77:62
|
E2E Playwright - edit-actions
Process completed with exit code 1.
|
[Create Actions] › src/tests/create-folder.e2e.ts:154:9 › Create folders › On Personal Files dataTable › [C216340] Create a folder with name:
e2e/playwright/create-actions/src/tests/create-folder.e2e.ts#L157
1) [Create Actions] › src/tests/create-folder.e2e.ts:154:9 › Create folders › On Personal Files dataTable › [C216340] Create a folder with name, title and description
Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected)
Locator: locator('adf-datatable .adf-cell-value span[role="link"]').filter({ hasText: 'create-folder-4imq7' })
- Expected string - 1
+ Received string + 1
- folder-title-1naav
+ create-folder-4imq7folder-title-1naav
folder-description-kis6n
Call log:
- expect.toHaveAttribute with timeout 5000ms
- waiting for locator('adf-datatable .adf-cell-value span[role="link"]').filter({ hasText: 'create-folder-4imq7' })
6 × locator resolved to <span role="link" tabindex="0" class="adf-datatable-cell-value" aria-label="Open create-folder-4imq7folder-title-1naav folder" title="create-folder-4imq7folder-title-1naav↵folder-description-kis6n"> create-folder-4imq7folder-title-1naav </span>
- unexpected value "create-folder-4imq7folder-title-1naav
folder-description-kis6n"
155 | await folderDialog.createNewFolderDialog(randomFolderName, randomFolderTitle, randomFolderDescription);
156 |
> 157 | await expect(folderTable.getCellLinkByName(randomFolderName)).toHaveAttribute('title', randomFolderTitle + `\n` + randomFolderDescription);
| ^
158 | });
159 |
160 | test('[C216351] Folder created after trimmed ending spaces from a folder name', async () => {
at /home/runner/work/alfresco-content-app/alfresco-content-app/e2e/playwright/create-actions/src/tests/create-folder.e2e.ts:157:69
|
[Create Actions] › src/tests/create-library.e2e.ts:240:7 › Create Libraries › [C280028] Create library using the ID of a library from the Trashcan:
projects/aca-playwright-shared/src/page-objects/components/dialogs/adf-library-dialog.component.ts#L67
2) [Create Actions] › src/tests/create-library.e2e.ts:240:7 › Create Libraries › [C280028] Create library using the ID of a library from the Trashcan
TimeoutError: locator.waitFor: Timeout 10000ms exceeded.
Call log:
- waiting for locator('mat-error').filter({ hasText: 'This Library ID is already used. Check the trashcan.' }) to be visible
at ../../../projects/aca-playwright-shared/src/page-objects/components/dialogs/adf-library-dialog.component.ts:67
65 |
66 | async isErrorMessageDisplayed(errorText: string): Promise<boolean> {
> 67 | await this.getErrorByText(errorText).waitFor({ state: 'visible', timeout: timeouts.large });
| ^
68 | return this.getErrorByText(errorText).isVisible();
69 | }
70 | }
at AdfLibraryDialogComponent.isErrorMessageDisplayed (/home/runner/work/alfresco-content-app/alfresco-content-app/projects/aca-playwright-shared/src/page-objects/components/dialogs/adf-library-dialog.component.ts:67:42)
at /home/runner/work/alfresco-content-app/alfresco-content-app/e2e/playwright/create-actions/src/tests/create-library.e2e.ts:249:32
|
[Info Drawer] › src/tests/file-folder-properties.e2e.ts:179:7 › Info Drawer - File Folder Properties › [XAT-17240] Remove a tag from a node:
e2e/playwright/info-drawer/src/tests/file-folder-properties.e2e.ts#L1
1) [Info Drawer] › src/tests/file-folder-properties.e2e.ts:179:7 › Info Drawer - File Folder Properties › [XAT-17240] Remove a tag from a node
Test timeout of 85000ms exceeded.
|
[Info Drawer] › src/tests/file-folder-properties.e2e.ts:179:7 › Info Drawer - File Folder Properties › [XAT-17240] Remove a tag from a node:
e2e/playwright/info-drawer/src/tests/file-folder-properties.e2e.ts#L197
1) [Info Drawer] › src/tests/file-folder-properties.e2e.ts:179:7 › Info Drawer - File Folder Properties › [XAT-17240] Remove a tag from a node
Error: locator.click: Test timeout of 85000ms exceeded.
Call log:
- waiting for locator('adf-info-drawer adf-tags-creator').locator('mat-chip').locator('.adf-dynamic-chip-list-delete-icon').first()
195 | await expect(personalFiles.infoDrawer.tagsChipsXButton.first()).toBeHidden();
196 | await personalFiles.infoDrawer.tagsAccordionPenButton.click();
> 197 | await personalFiles.infoDrawer.tagsChipsXButton.first().click();
| ^
198 | await personalFiles.infoDrawer.tagsAccordionConfirmButton.click();
199 | await expect(personalFiles.infoDrawer.tagsChips.first()).toBeHidden();
200 | await expect(personalFiles.infoDrawer.tagsAccordion).toContainText(noTagsText);
at /home/runner/work/alfresco-content-app/alfresco-content-app/e2e/playwright/info-drawer/src/tests/file-folder-properties.e2e.ts:197:61
|
[Info Drawer] › src/tests/file-preview.e2e.ts:68:7 › File preview › [C595967] Should preview document from the info drawer:
e2e/playwright/info-drawer/src/tests/file-preview.e2e.ts#L65
2) [Info Drawer] › src/tests/file-preview.e2e.ts:68:7 › File preview › [C595967] Should preview document from the info drawer
Error: expect(received).toContain(expected) // indexOf
Expected substring: "This is a small demonstration"
Received string: ""
63 | await expect(pageLoaded).toBeVisible();
64 | await expect(textLayerLoaded).toBeVisible();
> 65 | expect(await specificText).toContain(text);
| ^
66 | }
67 |
68 | test('[C595967] Should preview document from the info drawer', async ({ personalFiles }) => {
at checkFileContent (/home/runner/work/alfresco-content-app/alfresco-content-app/e2e/playwright/info-drawer/src/tests/file-preview.e2e.ts:65:32)
at /home/runner/work/alfresco-content-app/alfresco-content-app/e2e/playwright/info-drawer/src/tests/file-preview.e2e.ts:76:5
|
[Info Drawer] › src/tests/library-properties.e2e.ts:203:7 › Library properties › [C289343] Site description too long:
e2e/playwright/info-drawer/src/tests/library-properties.e2e.ts#L31
3) [Info Drawer] › src/tests/library-properties.e2e.ts:203:7 › Library properties › [C289343] Site description too long
Error: Timeout 10000ms exceeded while waiting on the predicate
29 | await expect(async () => {
30 | expect(await queriesApi.waitForSites(siteName, { expect: 1 })).toEqual(1);
> 31 | }).toPass({
| ^
32 | intervals: [1_000],
33 | timeout: 10_000
34 | });
at expectSiteToBeDefined (/home/runner/work/alfresco-content-app/alfresco-content-app/e2e/playwright/info-drawer/src/tests/library-properties.e2e.ts:31:6)
at /home/runner/work/alfresco-content-app/alfresco-content-app/e2e/playwright/info-drawer/src/tests/library-properties.e2e.ts:204:11
|
[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-evhrg' })
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
|
[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#L92
1) [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).toBeVisible()
Locator: locator('adf-datatable adf-datatable-row').filter({ hasText: '1x8th-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: '1x8th-fileNameKb.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 | });
95 | });
at /home/runner/work/alfresco-content-app/alfresco-content-app/e2e/playwright/search/src/tests/search-filters-properties.e2e.ts:92:68
|
[Search] › src/tests/search-highlighting.e2e.ts:69:7 › Search Highlighting › [XAT-17120] Matching phrases should be highlighted in the file description for search results:
e2e/playwright/search/src/tests/search-highlighting.e2e.ts#L71
2) [Search] › src/tests/search-highlighting.e2e.ts:69:7 › Search Highlighting › [XAT-17120] Matching phrases should be highlighted in the file description for search results
Error: expect(received).toBeTruthy()
Received: false
69 | test('[XAT-17120] Matching phrases should be highlighted in the file description for search results', async ({ searchPage }) => {
70 | await searchPage.searchWithin(fileDescription, 'files');
> 71 | expect(await searchPage.dataTable.hasHighlightedText('description')).toBeTruthy();
| ^
72 | expect(await searchPage.dataTable.hasHighlightedText('name')).toBeFalsy();
73 | });
74 |
at /home/runner/work/alfresco-content-app/alfresco-content-app/e2e/playwright/search/src/tests/search-highlighting.e2e.ts:71:74
|
[Search] › src/tests/search-sorting.e2e.ts:136:7 › Search sorting › [C277727] Sort by Relevance:
e2e/playwright/search/src/tests/search-sorting.e2e.ts#L112
3) [Search] › src/tests/search-sorting.e2e.ts:136:7 › Search sorting › [C277727] Sort by Relevance
Error: expect(received).toContain(expected) // indexOf
Expected substring: "search-sort-z217r-file-1.jpg"
Received string: " Select file search-sort-z217r-file-2.pdf ( search sort title )search-sort-${random}-fileCompany Home › User Homes › user1-z217r › parent-search-z217r2.96 KB less than a minute ago user2-z217r user2-z217r View 0 more "
110 | await searchPage.searchWithin(`*${random}*`, 'files');
111 | await searchPage.searchSortingPicker.sortBy(sortBy, sortOrder);
> 112 | expect(await searchPage.dataTable.getNthRow(0).textContent()).toContain(expectedFirstFile);
| ^
113 | expect(await searchPage.dataTable.getNthRow(1).textContent()).toContain(expectedSecondFile);
114 | }
115 |
at testSearchSorting (/home/runner/work/alfresco-content-app/alfresco-content-app/e2e/playwright/search/src/tests/search-sorting.e2e.ts:112:67)
at /home/runner/work/alfresco-content-app/alfresco-content-app/e2e/playwright/search/src/tests/search-sorting.e2e.ts:137:5
|
[List Views] › src/tests/sort-list.e2e.ts:139:7 › Remember sorting › [C589205] Size sort order is retained after viewing a file and closing the viewer:
e2e/playwright/list-views/src/tests/sort-list.e2e.ts#L149
1) [List Views] › src/tests/sort-list.e2e.ts:139:7 › Remember sorting › [C589205] Size sort order is retained after viewing a file and closing the viewer
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 1
Object {
- "firstElement": "file-115.jpg",
+ "firstElement": "file-101.pdf",
"sortingColumn": "Size",
"sortingOrder": "desc",
}
147 |
148 | const actualSortData = await getSortState(personalFiles);
> 149 | expect(actualSortData).toEqual(expectedSortData);
| ^
150 | });
151 |
152 | test('[C261153] Sort order should be remembered separately on each list view', async ({ personalFiles, favoritePage }) => {
at /home/runner/work/alfresco-content-app/alfresco-content-app/e2e/playwright/list-views/src/tests/sort-list.e2e.ts:149:28
|
[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
2) [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
2) [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-iw6q3.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
|
Finalize
Process completed with exit code 1.
|
lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
build
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Unit tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Slow Test:
[Authentication] › src/tests/general.e2e.ts#L1
[Authentication] › src/tests/general.e2e.ts took 16.2s
|
Slow Test:
[Info Drawer] › src/tests/general.e2e.ts#L1
[Info Drawer] › src/tests/general.e2e.ts took 21.0s
|
Slow Test:
[Viewer] › src/tests/viewer-useraction.e2e.ts#L1
[Viewer] › src/tests/viewer-useraction.e2e.ts took 29.6s
|
Slow Test:
[Search] › src/tests/search-filters-general.e2e.ts#L1
[Search] › src/tests/search-filters-general.e2e.ts took 39.9s
|
Slow Test:
[Search] › src/tests/search-filters-tags.e2e.ts#L1
[Search] › src/tests/search-filters-tags.e2e.ts took 23.0s
|
Finalize
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
🎭 Playwright Run Summary
6 passed (26.2s)
|
🎭 Playwright Run Summary
1 flaky
[Navigation] › src/tests/single-click.e2e.ts:83:7 › Single click on item name › [C284902] Navigate inside the library when clicking the hyperlink on File Libraries
15 passed (1.5m)
|
🎭 Playwright Run Summary
1 failed
[Edit Actions] › src/tests/edit-offline.e2e.ts:73:7 › Edit offline - on Personal Files › [XAT-5304] File is locked and downloaded when clicking Edit offline
10 passed (1.6m)
|
🎭 Playwright Run Summary
9 passed (57.6s)
|
🎭 Playwright Run Summary
2 flaky
[Create Actions] › src/tests/create-folder.e2e.ts:154:9 › Create folders › On Personal Files dataTable › [C216340] Create a folder with name, title and description
[Create Actions] › src/tests/create-library.e2e.ts:240:7 › Create Libraries › [C280028] Create library using the ID of a library from the Trashcan
18 passed (1.9m)
|
🎭 Playwright Run Summary
29 passed (2.7m)
|
🎭 Playwright Run Summary
11 passed (1.9m)
|
🎭 Playwright Run Summary
15 passed (1.8m)
|
🎭 Playwright Run Summary
19 passed (3.0m)
|
🎭 Playwright Run Summary
23 passed (3.3m)
|
🎭 Playwright Run Summary
24 passed (3.6m)
|
🎭 Playwright Run Summary
3 flaky
[Info Drawer] › src/tests/file-folder-properties.e2e.ts:179:7 › Info Drawer - File Folder Properties › [XAT-17240] Remove a tag from a node
[Info Drawer] › src/tests/file-preview.e2e.ts:68:7 › File preview › [C595967] Should preview document from the info drawer
[Info Drawer] › src/tests/library-properties.e2e.ts:203:7 › Library properties › [C289343] Site description too long
22 passed (3.2m)
|
🎭 Playwright Run Summary
34 passed (4.9m)
|
🎭 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.3m)
|
🎭 Playwright Run Summary
3 flaky
[Search] › src/tests/search-filters-properties.e2e.ts:87:7 › Search - Filters - Properties › [C699047] Filter by type
[Search] › src/tests/search-highlighting.e2e.ts:69:7 › Search Highlighting › [XAT-17120] Matching phrases should be highlighted in the file description for search results
[Search] › src/tests/search-sorting.e2e.ts:136:7 › Search sorting › [C277727] Sort by Relevance
45 passed (6.2m)
|
🎭 Playwright Run Summary
2 flaky
[List Views] › src/tests/sort-list.e2e.ts:139:7 › Remember sorting › [C589205] Size sort order is retained after viewing a file and closing the viewer
[List Views] › src/tests/trash.e2e.ts:102:9 › Trash › Regular user's personal files › [C280496] Location column redirect - file in folder
66 passed (7.7m)
|
🎭 Playwright Run Summary
64 passed (5.8m)
|