Skip to content

Ca 294 refactor library management #843

Ca 294 refactor library management

Ca 294 refactor library management #843

Triggered via pull request May 16, 2024 10:38
Status Failure
Total duration 33m 33s
Artifacts

functional-tests.yml

on: pull_request
Matrix: functional-tests
Fit to window
Zoom out
Zoom in

Annotations

21 errors, 7 warnings, and 2 notices
[chromium] › functional/detailed/libraries.test.ts:4:1 › every libraries can be loaded: frontend/tests/functional/detailed/libraries.test.ts#L26
1) [chromium] › functional/detailed/libraries.test.ts:4:1 › every libraries can be loaded ──────── Error: An error occured while importing library: OWASP-ASVS-4.0.3 expect(received).not.toEqual(expected) // deep equality Expected: not "OWASP-ASVS-4.0.3" 24 | previousRemainingLibrary, 25 | 'An error occured while importing library: ' + previousRemainingLibrary > 26 | ).not.toEqual(nextRemainingLibrary); | ^ 27 | } 28 | }); 29 | at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/detailed/libraries.test.ts:26:9
[chromium] › functional/detailed/libraries.test.ts:4:1 › every libraries can be loaded: frontend/tests/functional/detailed/libraries.test.ts#L1
1) [chromium] › functional/detailed/libraries.test.ts:4:1 › every libraries can be loaded ──────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Test timeout of 150000ms exceeded.
[chromium] › functional/detailed/libraries.test.ts:4:1 › every libraries can be loaded: frontend/tests/utils/page-content.ts#L87
1) [chromium] › functional/detailed/libraries.test.ts:4:1 › every libraries can be loaded ──────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 150000ms exceeded. Call log: - waiting for getByRole('row', { name: 'OWASP-ASVS-4.0.3' }).first().getByTestId('tablerow-import-button') at utils/page-content.ts:87 85 | return; 86 | } > 87 | await this.importItemButton(ref, language === 'any' ? undefined : language).click(); | ^ 88 | await this.isToastVisible(`The library has been successfully loaded.+`, undefined, { 89 | timeout: 15000 90 | }); at PageContent.importLibrary (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/page-content.ts:87:79) at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/detailed/libraries.test.ts:12:3
[chromium] › functional/user-permissions.test.ts:28:3 › Analyst user has the right permissions › user can set his password: frontend/tests/functional/user-permissions.test.ts#L1
2) [chromium] › functional/user-permissions.test.ts:28:3 › Analyst user has the right permissions › user can set his password Test timeout of 150000ms exceeded while setting up "populateDatabase".
[chromium] › functional/user-permissions.test.ts:28:3 › Analyst user has the right permissions › user can set his password: frontend/tests/utils/page-content.ts#L87
2) [chromium] › functional/user-permissions.test.ts:28:3 › Analyst user has the right permissions › user can set his password Error: locator.click: Test timeout of 150000ms exceeded. Call log: - waiting for getByRole('row', { name: 'doc-pol' }).filter({ has: getByText('English').first() }).first().getByTestId('tablerow-import-button') at utils/page-content.ts:87 85 | return; 86 | } > 87 | await this.importItemButton(ref, language === 'any' ? undefined : language).click(); | ^ 88 | await this.isToastVisible(`The library has been successfully loaded.+`, undefined, { 89 | timeout: 15000 90 | }); at PageContent.importLibrary (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/page-content.ts:87:79) at PageContent.createItem (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/page-content.ts:44:4) at Object.populateDatabase (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/test-utils.ts:280:4)
[chromium] › functional/user-permissions.test.ts:28:3 › Analyst user has the right permissions › user can set his password: frontend/tests/functional/user-permissions.test.ts#L1
2) [chromium] › functional/user-permissions.test.ts:28:3 › Analyst user has the right permissions › user can set his password Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Test timeout of 150000ms exceeded while setting up "populateDatabase".
[chromium] › functional/user-permissions.test.ts:28:3 › Analyst user has the right permissions › user can set his password: frontend/tests/utils/page-content.ts#L87
2) [chromium] › functional/user-permissions.test.ts:28:3 › Analyst user has the right permissions › user can set his password Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 150000ms exceeded. Call log: - waiting for getByRole('row', { name: 'doc-pol' }).filter({ has: getByText('English').first() }).first().getByTestId('tablerow-import-button') at utils/page-content.ts:87 85 | return; 86 | } > 87 | await this.importItemButton(ref, language === 'any' ? undefined : language).click(); | ^ 88 | await this.isToastVisible(`The library has been successfully loaded.+`, undefined, { 89 | timeout: 15000 90 | }); at PageContent.importLibrary (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/page-content.ts:87:79) at PageContent.createItem (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/page-content.ts:44:4) at Object.populateDatabase (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/test-utils.ts:280:4)
[chromium] › functional/user-permissions.test.ts:28:3 › Reader user has the right permissions › user can set his password: frontend/tests/functional/user-permissions.test.ts#L1
3) [chromium] › functional/user-permissions.test.ts:28:3 › Reader user has the right permissions › user can set his password Test timeout of 150000ms exceeded while setting up "populateDatabase".
[chromium] › functional/user-permissions.test.ts:28:3 › Reader user has the right permissions › user can set his password: frontend/tests/utils/page-content.ts#L87
3) [chromium] › functional/user-permissions.test.ts:28:3 › Reader user has the right permissions › user can set his password Error: locator.click: Test timeout of 150000ms exceeded. Call log: - waiting for getByRole('row', { name: 'doc-pol' }).filter({ has: getByText('English').first() }).first().getByTestId('tablerow-import-button') at utils/page-content.ts:87 85 | return; 86 | } > 87 | await this.importItemButton(ref, language === 'any' ? undefined : language).click(); | ^ 88 | await this.isToastVisible(`The library has been successfully loaded.+`, undefined, { 89 | timeout: 15000 90 | }); at PageContent.importLibrary (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/page-content.ts:87:79) at PageContent.createItem (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/page-content.ts:44:4) at Object.populateDatabase (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/test-utils.ts:280:4)
[chromium] › functional/user-permissions.test.ts:28:3 › Reader user has the right permissions › user can set his password: frontend/tests/functional/user-permissions.test.ts#L1
3) [chromium] › functional/user-permissions.test.ts:28:3 › Reader user has the right permissions › user can set his password Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Test timeout of 150000ms exceeded while setting up "populateDatabase".
functional-tests (3.11, firefox)
The job was canceled because "_3_11_chromium" failed.
[firefox] › functional/detailed/common.test.ts:79:4 › Tests on applied controls item › Tests on applied controls item details › user can edit applied controls item: frontend/tests/functional/detailed/common.test.ts#L34
1) [firefox] › functional/detailed/common.test.ts:79:4 › Tests on applied controls item › Tests on applied controls item details › user can edit applied controls item Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Test timeout of 50000ms exceeded while running "beforeEach" hook. 32 | 33 | test.describe(`Tests on ${items[key].displayName.toLowerCase()} item details`, () => { > 34 | test.beforeEach(async ({ logedPage, pages, page }, testInfo) => { | ^ 35 | await pages[key].goto(); 36 | await expect(page).toHaveURL(pages[key].url); 37 | at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/detailed/common.test.ts:34:9
[firefox] › functional/detailed/common.test.ts:79:4 › Tests on applied controls item › Tests on applied controls item details › user can edit applied controls item: frontend/tests/utils/page-content.ts#L87
1) [firefox] › functional/detailed/common.test.ts:79:4 › Tests on applied controls item › Tests on applied controls item details › user can edit applied controls item Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 50000ms exceeded. Call log: - waiting for getByRole('row', { name: 'doc-pol' }).filter({ has: getByText('English').first() }).first().getByTestId('tablerow-import-button') at utils/page-content.ts:87 85 | return; 86 | } > 87 | await this.importItemButton(ref, language === 'any' ? undefined : language).click(); | ^ 88 | await this.isToastVisible(`The library has been successfully loaded.+`, undefined, { 89 | timeout: 15000 90 | }); at PageContent.importLibrary (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/page-content.ts:87:79) at PageContent.createItem (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/page-content.ts:44:4) at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/detailed/common.test.ts:48:5
[firefox] › functional/detailed/libraries.test.ts:4:1 › every libraries can be loaded: frontend/tests/functional/detailed/libraries.test.ts#L26
2) [firefox] › functional/detailed/libraries.test.ts:4:1 › every libraries can be loaded ───────── Error: An error occured while importing library: OWASP-ASVS-4.0.3 expect(received).not.toEqual(expected) // deep equality Expected: not "OWASP-ASVS-4.0.3" 24 | previousRemainingLibrary, 25 | 'An error occured while importing library: ' + previousRemainingLibrary > 26 | ).not.toEqual(nextRemainingLibrary); | ^ 27 | } 28 | }); 29 | at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/detailed/libraries.test.ts:26:9
[firefox] › functional/detailed/libraries.test.ts:4:1 › every libraries can be loaded: frontend/tests/functional/detailed/libraries.test.ts#L1
2) [firefox] › functional/detailed/libraries.test.ts:4:1 › every libraries can be loaded ───────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Test timeout of 150000ms exceeded.
[firefox] › functional/detailed/libraries.test.ts:4:1 › every libraries can be loaded: frontend/tests/utils/page-content.ts#L87
2) [firefox] › functional/detailed/libraries.test.ts:4:1 › every libraries can be loaded ───────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 150000ms exceeded. Call log: - waiting for getByRole('row', { name: 'OWASP-ASVS-4.0.3' }).first().getByTestId('tablerow-import-button') at utils/page-content.ts:87 85 | return; 86 | } > 87 | await this.importItemButton(ref, language === 'any' ? undefined : language).click(); | ^ 88 | await this.isToastVisible(`The library has been successfully loaded.+`, undefined, { 89 | timeout: 15000 90 | }); at PageContent.importLibrary (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/page-content.ts:87:79) at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/detailed/libraries.test.ts:12:3
[firefox] › functional/user-permissions.test.ts:28:3 › Analyst user has the right permissions › user can set his password: frontend/tests/functional/user-permissions.test.ts#L1
3) [firefox] › functional/user-permissions.test.ts:28:3 › Analyst user has the right permissions › user can set his password Test timeout of 150000ms exceeded while setting up "populateDatabase".
[firefox] › functional/user-permissions.test.ts:28:3 › Analyst user has the right permissions › user can set his password: frontend/tests/utils/page-content.ts#L87
3) [firefox] › functional/user-permissions.test.ts:28:3 › Analyst user has the right permissions › user can set his password Error: locator.click: Test timeout of 150000ms exceeded. Call log: - waiting for getByRole('row', { name: 'doc-pol' }).filter({ has: getByText('English').first() }).first().getByTestId('tablerow-import-button') at utils/page-content.ts:87 85 | return; 86 | } > 87 | await this.importItemButton(ref, language === 'any' ? undefined : language).click(); | ^ 88 | await this.isToastVisible(`The library has been successfully loaded.+`, undefined, { 89 | timeout: 15000 90 | }); at PageContent.importLibrary (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/page-content.ts:87:79) at PageContent.createItem (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/page-content.ts:44:4) at Object.populateDatabase (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/test-utils.ts:280:4)
[firefox] › functional/user-permissions.test.ts:28:3 › Analyst user has the right permissions › user can set his password: frontend/tests/functional/user-permissions.test.ts#L1
3) [firefox] › functional/user-permissions.test.ts:28:3 › Analyst user has the right permissions › user can set his password Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Test timeout of 150000ms exceeded while setting up "populateDatabase".
[firefox] › functional/user-permissions.test.ts:28:3 › Analyst user has the right permissions › user can set his password: frontend/tests/utils/page-content.ts#L87
3) [firefox] › functional/user-permissions.test.ts:28:3 › Analyst user has the right permissions › user can set his password Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 150000ms exceeded. Call log: - waiting for getByRole('row', { name: 'doc-pol' }).filter({ has: getByText('English').first() }).first().getByTestId('tablerow-import-button') at utils/page-content.ts:87 85 | return; 86 | } > 87 | await this.importItemButton(ref, language === 'any' ? undefined : language).click(); | ^ 88 | await this.isToastVisible(`The library has been successfully loaded.+`, undefined, { 89 | timeout: 15000 90 | }); at PageContent.importLibrary (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/page-content.ts:87:79) at PageContent.createItem (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/page-content.ts:44:4) at Object.populateDatabase (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/test-utils.ts:280:4)
[firefox] › functional/user-permissions.test.ts:28:3 › Reader user has the right permissions › user can set his password: frontend/tests/functional/user-permissions.test.ts#L1
4) [firefox] › functional/user-permissions.test.ts:28:3 › Reader user has the right permissions › user can set his password Test timeout of 150000ms exceeded while setting up "populateDatabase".
functional-tests (3.11, chromium)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-python@v4. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Slow Test: frontend/[chromium] › functional/user-route.test.ts#L1
frontend/[chromium] › functional/user-route.test.ts took 43.3s
Slow Test: frontend/[chromium] › functional/nav.test.ts#L1
frontend/[chromium] › functional/nav.test.ts took 22.3s
functional-tests (3.11, chromium)
No files were found with the provided path: ./frontend/tests/chromiumresults/ ./frontend/tests/chromiumreports/. No artifacts will be uploaded.
Slow Test: frontend/[firefox] › functional/user-route.test.ts#L1
frontend/[firefox] › functional/user-route.test.ts took 48.7s
Slow Test: frontend/[firefox] › functional/nav.test.ts#L1
frontend/[firefox] › functional/nav.test.ts took 23.5s
functional-tests (3.11, firefox)
No files were found with the provided path: ./frontend/tests/firefoxresults/ ./frontend/tests/firefoxreports/. No artifacts will be uploaded.
🎭 Playwright Run Summary
5 failed [chromium] › functional/detailed/libraries.test.ts:4:1 › every libraries can be loaded ───────── [chromium] › functional/user-permissions.test.ts:28:3 › Analyst user has the right permissions › user can set his password [chromium] › functional/user-permissions.test.ts:28:3 › Reader user has the right permissions › user can set his password [chromium] › functional/user-permissions.test.ts:28:3 › Domain manager user has the right permissions › user can set his password [chromium] › functional/user-permissions.test.ts:28:3 › Approver user has the right permissions › user can set his password 2 flaky [chromium] › functional/detailed/common.test.ts:70:4 › Tests on applied controls item › Tests on applied controls item details › Applied controls item details are showing properly [chromium] › functional/detailed/common.test.ts:79:4 › Tests on applied controls item › Tests on applied controls item details › user can edit applied controls item 204 skipped 20 passed (31.0m)
🎭 Playwright Run Summary
6 failed [firefox] › functional/detailed/common.test.ts:79:4 › Tests on applied controls item › Tests on applied controls item details › user can edit applied controls item [firefox] › functional/detailed/libraries.test.ts:4:1 › every libraries can be loaded ────────── [firefox] › functional/user-permissions.test.ts:28:3 › Analyst user has the right permissions › user can set his password [firefox] › functional/user-permissions.test.ts:28:3 › Reader user has the right permissions › user can set his password [firefox] › functional/user-permissions.test.ts:28:3 › Domain manager user has the right permissions › user can set his password [firefox] › functional/user-permissions.test.ts:28:3 › Approver user has the right permissions › user can set his password 2 flaky [firefox] › functional/detailed/common.test.ts:79:4 › Tests on threats item › Tests on threats item details › user can edit threats item [firefox] › functional/detailed/login.test.ts:41:1 › forgot password process is working properly 204 skipped 19 passed (31.1m)