Skip to content

Ca 294 refactor library management #797

Ca 294 refactor library management

Ca 294 refactor library management #797

Triggered via pull request May 14, 2024 14:47
Status Failure
Total duration 45m 10s
Artifacts

functional-tests.yml

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

Annotations

21 errors, 5 warnings, and 2 notices
[firefox] › 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: frontend/tests/functional/detailed/common.test.ts#L34
1) [firefox] › 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 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:70:4 › Tests on applied controls item › Tests on applied controls item details › Applied controls item details are showing properly: frontend/tests/utils/page-content.ts#L91
1) [firefox] › 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 Error: locator.click: Test timeout of 50000ms exceeded. Call log: - waiting for getByTestId('tab').filter({ hasText: 'Imported libraries' }) at utils/page-content.ts:91 89 | timeout: 15000 90 | }); > 91 | await this.tab('Imported libraries').click(); | ^ 92 | expect(this.tab('Imported libraries').getAttribute('aria-selected')).toBeTruthy(); 93 | expect(this.getRow(ref)).toBeVisible(); 94 | } at PageContent.importLibrary (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/page-content.ts:91:40) 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/common.test.ts:70:4 › Tests on applied controls item › Tests on applied controls item details › Applied controls item details are showing properly: frontend/tests/functional/detailed/common.test.ts#L34
1) [firefox] › 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 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:70:4 › Tests on applied controls item › Tests on applied controls item details › Applied controls item details are showing properly: frontend/tests/utils/page-content.ts#L82
1) [firefox] › 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 Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 50000ms exceeded. Call log: - waiting for getByTestId('tab').filter({ hasText: 'Imported libraries' }) at utils/page-content.ts:82 80 | // If the library is not visible, it might have already been imported 81 | if (await this.getRow(ref).isHidden()) { > 82 | await this.tab('Imported libraries').click(); | ^ 83 | expect(this.tab('Imported libraries').getAttribute('aria-selected')).toBeTruthy(); 84 | expect(this.getRow(ref)).toBeVisible(); 85 | return; at PageContent.importLibrary (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/page-content.ts:82:41) 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 imported: frontend/tests/functional/detailed/libraries.test.ts#L1
2) [firefox] › functional/detailed/libraries.test.ts:4:1 › every libraries can be imported ─────── Test timeout of 150000ms exceeded.
[firefox] › functional/detailed/libraries.test.ts:4:1 › every libraries can be imported: frontend/tests/utils/page-content.ts#L91
2) [firefox] › functional/detailed/libraries.test.ts:4:1 › every libraries can be imported ─────── Error: locator.click: Test timeout of 150000ms exceeded. Call log: - waiting for getByTestId('tab').filter({ hasText: 'Imported libraries' }) at utils/page-content.ts:91 89 | timeout: 15000 90 | }); > 91 | await this.tab('Imported libraries').click(); | ^ 92 | expect(this.tab('Imported libraries').getAttribute('aria-selected')).toBeTruthy(); 93 | expect(this.getRow(ref)).toBeVisible(); 94 | } at PageContent.importLibrary (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/page-content.ts:91:40) at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/detailed/libraries.test.ts:12:3
[firefox] › functional/detailed/libraries.test.ts:4:1 › every libraries can be imported: frontend/tests/functional/detailed/libraries.test.ts#L1
2) [firefox] › functional/detailed/libraries.test.ts:4:1 › every libraries can be imported ─────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Test timeout of 150000ms exceeded.
[firefox] › functional/detailed/libraries.test.ts:4:1 › every libraries can be imported: frontend/tests/utils/page-content.ts#L91
2) [firefox] › functional/detailed/libraries.test.ts:4:1 › every libraries can be imported ─────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 150000ms exceeded. Call log: - waiting for getByTestId('tab').filter({ hasText: 'Imported libraries' }) at utils/page-content.ts:91 89 | timeout: 15000 90 | }); > 91 | await this.tab('Imported libraries').click(); | ^ 92 | expect(this.tab('Imported libraries').getAttribute('aria-selected')).toBeTruthy(); 93 | expect(this.getRow(ref)).toBeVisible(); 94 | } at PageContent.importLibrary (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/page-content.ts:91:40) 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#L82
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 getByTestId('tab').filter({ hasText: 'Imported libraries' }) at utils/page-content.ts:82 80 | // If the library is not visible, it might have already been imported 81 | if (await this.getRow(ref).isHidden()) { > 82 | await this.tab('Imported libraries').click(); | ^ 83 | expect(this.tab('Imported libraries').getAttribute('aria-selected')).toBeTruthy(); 84 | expect(this.getRow(ref)).toBeVisible(); 85 | return; at PageContent.importLibrary (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/page-content.ts:82:41) 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)
functional-tests (3.11, chromium)
The job was canceled because "_3_11_firefox" failed.
[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: frontend/tests/functional/detailed/common.test.ts#L34
1) [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 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
[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: frontend/tests/utils/page-content.ts#L91
1) [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 Error: locator.click: Test timeout of 50000ms exceeded. Call log: - waiting for getByTestId('tab').filter({ hasText: 'Imported libraries' }) at utils/page-content.ts:91 89 | timeout: 15000 90 | }); > 91 | await this.tab('Imported libraries').click(); | ^ 92 | expect(this.tab('Imported libraries').getAttribute('aria-selected')).toBeTruthy(); 93 | expect(this.getRow(ref)).toBeVisible(); 94 | } at PageContent.importLibrary (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/page-content.ts:91:40) 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
[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: frontend/tests/functional/detailed/common.test.ts#L34
1) [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 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
[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: frontend/tests/utils/page-content.ts#L82
1) [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 Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 50000ms exceeded. Call log: - waiting for getByTestId('tab').filter({ hasText: 'Imported libraries' }) at utils/page-content.ts:82 80 | // If the library is not visible, it might have already been imported 81 | if (await this.getRow(ref).isHidden()) { > 82 | await this.tab('Imported libraries').click(); | ^ 83 | expect(this.tab('Imported libraries').getAttribute('aria-selected')).toBeTruthy(); 84 | expect(this.getRow(ref)).toBeVisible(); 85 | return; at PageContent.importLibrary (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/page-content.ts:82:41) 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
[chromium] › functional/detailed/libraries.test.ts:4:1 › every libraries can be imported: frontend/tests/functional/detailed/libraries.test.ts#L1
2) [chromium] › functional/detailed/libraries.test.ts:4:1 › every libraries can be imported ────── Test timeout of 150000ms exceeded.
[chromium] › functional/detailed/libraries.test.ts:4:1 › every libraries can be imported: frontend/tests/utils/page-content.ts#L91
2) [chromium] › functional/detailed/libraries.test.ts:4:1 › every libraries can be imported ────── Error: locator.click: Test timeout of 150000ms exceeded. Call log: - waiting for getByTestId('tab').filter({ hasText: 'Imported libraries' }) at utils/page-content.ts:91 89 | timeout: 15000 90 | }); > 91 | await this.tab('Imported libraries').click(); | ^ 92 | expect(this.tab('Imported libraries').getAttribute('aria-selected')).toBeTruthy(); 93 | expect(this.getRow(ref)).toBeVisible(); 94 | } at PageContent.importLibrary (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/page-content.ts:91:40) at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/detailed/libraries.test.ts:12:3
[chromium] › functional/detailed/libraries.test.ts:4:1 › every libraries can be imported: frontend/tests/functional/detailed/libraries.test.ts#L1
2) [chromium] › functional/detailed/libraries.test.ts:4:1 › every libraries can be imported ────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Test timeout of 150000ms exceeded.
[chromium] › functional/detailed/libraries.test.ts:4:1 › every libraries can be imported: frontend/tests/utils/page-content.ts#L91
2) [chromium] › functional/detailed/libraries.test.ts:4:1 › every libraries can be imported ────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 150000ms exceeded. Call log: - waiting for getByTestId('tab').filter({ hasText: 'Imported libraries' }) at utils/page-content.ts:91 89 | timeout: 15000 90 | }); > 91 | await this.tab('Imported libraries').click(); | ^ 92 | expect(this.tab('Imported libraries').getAttribute('aria-selected')).toBeTruthy(); 93 | expect(this.getRow(ref)).toBeVisible(); 94 | } at PageContent.importLibrary (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/page-content.ts:91:40) 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
3) [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#L82
3) [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 getByTestId('tab').filter({ hasText: 'Imported libraries' }) at utils/page-content.ts:82 80 | // If the library is not visible, it might have already been imported 81 | if (await this.getRow(ref).isHidden()) { > 82 | await this.tab('Imported libraries').click(); | ^ 83 | expect(this.tab('Imported libraries').getAttribute('aria-selected')).toBeTruthy(); 84 | expect(this.getRow(ref)).toBeVisible(); 85 | return; at PageContent.importLibrary (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/page-content.ts:82:41) 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)
functional-tests (3.11, firefox)
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/[firefox] › functional/nav.test.ts#L1
frontend/[firefox] › functional/nav.test.ts took 22.7s
functional-tests (3.11, firefox)
No files were found with the provided path: ./frontend/tests/firefoxresults/ ./frontend/tests/firefoxreports/. No artifacts will be uploaded.
Slow Test: frontend/[chromium] › functional/nav.test.ts#L1
frontend/[chromium] › functional/nav.test.ts took 20.8s
functional-tests (3.11, chromium)
No files were found with the provided path: ./frontend/tests/chromiumresults/ ./frontend/tests/chromiumreports/. No artifacts will be uploaded.
🎭 Playwright Run Summary
7 failed [firefox] › 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 [firefox] › functional/detailed/libraries.test.ts:4:1 › every libraries can be imported ──────── [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 [firefox] › functional/user-route.test.ts:6:1 › user usual routine actions are working correctly 205 skipped 19 passed (42.5m)
🎭 Playwright Run Summary
7 failed [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/libraries.test.ts:4:1 › every libraries can be imported ─────── [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 [chromium] › functional/user-route.test.ts:6:1 › user usual routine actions are working correctly 205 skipped 19 passed (43.0m)