Paginate libraries #2214
functional-tests.yml
on: pull_request
Matrix: enterprise-functional-tests
Matrix: functional-tests
Annotations
17 errors, 9 warnings, and 2 notices
[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#L83
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: 'Loaded libraries' })
at utils/page-content.ts:83
81 | // If the library is not visible, it might have already been loaded
82 | if (await this.importItemButton(name, language === 'any' ? undefined : language).isHidden()) {
> 83 | await this.tab('Loaded libraries').click();
| ^
84 | expect(this.tab('Loaded libraries').getAttribute('aria-selected')).toBeTruthy();
85 | expect(this.getRow(name)).toBeVisible();
86 | return;
at PageContent.importLibrary (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/page-content.ts:83:39)
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#L83
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: 'Loaded libraries' })
at utils/page-content.ts:83
81 | // If the library is not visible, it might have already been loaded
82 | if (await this.importItemButton(name, language === 'any' ? undefined : language).isHidden()) {
> 83 | await this.tab('Loaded libraries').click();
| ^
84 | expect(this.tab('Loaded libraries').getAttribute('aria-selected')).toBeTruthy();
85 | expect(this.getRow(name)).toBeVisible();
86 | return;
at PageContent.importLibrary (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/page-content.ts:83:39)
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/user-permissions.test.ts:28:3 › Analyst user has the right permissions › user can set his password:
frontend/tests/utils/page-content.ts#L94
2) [chromium] › functional/user-permissions.test.ts:28:3 › Analyst user has the right permissions › user can set his password
Error: Timed out 10000ms waiting for expect(locator).toBeVisible()
Locator: getByRole('row', { name: 'Documents and policies' }).first()
Expected: visible
Received: <element(s) not found>
Call log:
- expect.toBeVisible with timeout 10000ms
- waiting for getByRole('row', { name: 'Documents and policies' }).first()
at utils/page-content.ts:94
92 | await this.tab('Loaded libraries').click();
93 | expect(this.tab('Loaded libraries').getAttribute('aria-selected')).toBeTruthy();
> 94 | expect(this.getRow(name)).toBeVisible();
| ^
95 | }
96 |
97 | async viewItemDetail(value?: string) {
at PageContent.importLibrary (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/page-content.ts:94:29)
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:283:4)
|
[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#L41
2) [chromium] › functional/user-permissions.test.ts:28:3 › Analyst user has the right permissions › user can set his password
Error: page.goto: net::ERR_ABORTED; maybe frame was detached?
Call log:
- navigating to "http://localhost:4173/libraries", waiting until "load"
at utils/page-content.ts:41
39 | async createItem(values: { [k: string]: any }, dependency?: any) {
40 | if (dependency) {
> 41 | await this.page.goto('/libraries');
| ^
42 | await this.page.waitForURL('/libraries');
43 |
44 | await this.importLibrary(dependency.name, dependency.urn);
at PageContent.createItem (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/page-content.ts:41:20)
at Object.populateDatabase (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/test-utils.ts:283:22)
|
[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#L85
2) [chromium] › functional/user-permissions.test.ts:28:3 › Analyst user has the right permissions › user can set his password
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 10000ms waiting for expect(locator).toBeVisible()
Locator: getByRole('row', { name: 'Documents and policies' }).first()
Expected: visible
Received: <element(s) not found>
Call log:
- expect.toBeVisible with timeout 10000ms
- waiting for getByRole('row', { name: 'Documents and policies' }).first()
at utils/page-content.ts:85
83 | await this.tab('Loaded libraries').click();
84 | expect(this.tab('Loaded libraries').getAttribute('aria-selected')).toBeTruthy();
> 85 | expect(this.getRow(name)).toBeVisible();
| ^
86 | return;
87 | }
88 | await this.importItemButton(name, language === 'any' ? undefined : language).click();
at PageContent.importLibrary (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/page-content.ts:85:30)
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:283:4)
|
[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#L41
2) [chromium] › functional/user-permissions.test.ts:28:3 › Analyst user has the right permissions › user can set his password
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: page.goto: net::ERR_ABORTED; maybe frame was detached?
Call log:
- navigating to "http://localhost:4173/libraries", waiting until "load"
at utils/page-content.ts:41
39 | async createItem(values: { [k: string]: any }, dependency?: any) {
40 | if (dependency) {
> 41 | await this.page.goto('/libraries');
| ^
42 | await this.page.waitForURL('/libraries');
43 |
44 | await this.importLibrary(dependency.name, dependency.urn);
at PageContent.createItem (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/page-content.ts:41:20)
at Object.populateDatabase (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/test-utils.ts:283:22)
|
[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#L85
3) [chromium] › functional/user-permissions.test.ts:28:3 › Reader user has the right permissions › user can set his password
Error: Timed out 10000ms waiting for expect(locator).toBeVisible()
Locator: getByRole('row', { name: 'Documents and policies' }).first()
Expected: visible
Received: <element(s) not found>
Call log:
- expect.toBeVisible with timeout 10000ms
- waiting for getByRole('row', { name: 'Documents and policies' }).first()
at utils/page-content.ts:85
83 | await this.tab('Loaded libraries').click();
84 | expect(this.tab('Loaded libraries').getAttribute('aria-selected')).toBeTruthy();
> 85 | expect(this.getRow(name)).toBeVisible();
| ^
86 | return;
87 | }
88 | await this.importItemButton(name, language === 'any' ? undefined : language).click();
at PageContent.importLibrary (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/page-content.ts:85:30)
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:283:4)
|
[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#L41
3) [chromium] › functional/user-permissions.test.ts:28:3 › Reader user has the right permissions › user can set his password
Error: page.goto: net::ERR_ABORTED; maybe frame was detached?
Call log:
- navigating to "http://localhost:4173/libraries", waiting until "load"
at utils/page-content.ts:41
39 | async createItem(values: { [k: string]: any }, dependency?: any) {
40 | if (dependency) {
> 41 | await this.page.goto('/libraries');
| ^
42 | await this.page.waitForURL('/libraries');
43 |
44 | await this.importLibrary(dependency.name, dependency.urn);
at PageContent.createItem (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/page-content.ts:41:20)
at Object.populateDatabase (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/test-utils.ts:283:22)
|
[chromium] › functional/user-route.test.ts:6:1 › user usual routine actions are working correctly:
enterprise/frontend/.build/frontend/tests/utils/page-content.ts#L94
1) [chromium] › functional/user-route.test.ts:6:1 › user usual routine actions are working correctly
Error: Timed out 10000ms waiting for expect(locator).toBeVisible()
Locator: getByRole('row', { name: 'NIST-CSF-1.1' }).first()
Expected: visible
Received: <element(s) not found>
Call log:
- expect.toBeVisible with timeout 10000ms
- waiting for getByRole('row', { name: 'NIST-CSF-1.1' }).first()
at utils/page-content.ts:94
92 | await this.tab('Loaded libraries').click();
93 | expect(this.tab('Loaded libraries').getAttribute('aria-selected')).toBeTruthy();
> 94 | expect(this.getRow(name)).toBeVisible();
| ^
95 | }
96 |
97 | async viewItemDetail(value?: string) {
at PageContent.importLibrary (/home/runner/work/ciso-assistant-community/ciso-assistant-community/enterprise/frontend/.build/frontend/tests/utils/page-content.ts:94:29)
at /home/runner/work/ciso-assistant-community/ciso-assistant-community/enterprise/frontend/.build/frontend/tests/functional/user-route.test.ts:75:3
at /home/runner/work/ciso-assistant-community/ciso-assistant-community/enterprise/frontend/.build/frontend/tests/functional/user-route.test.ts:66:2
|
[chromium] › functional/user-route.test.ts:6:1 › user usual routine actions are working correctly:
enterprise/frontend/.build/frontend/tests/utils/form-content.ts#L90
1) [chromium] › functional/user-route.test.ts:6:1 › user usual routine actions are working correctly
Error: Timed out 10000ms waiting for expect(locator).toBeVisible()
Locator: getByRole('option', { name: 'NIST CSF v1.1', exact: true }).first()
Expected: visible
Received: <element(s) not found>
Call log:
- expect.toBeVisible with timeout 10000ms
- waiting for getByRole('option', { name: 'NIST CSF v1.1', exact: true }).first()
at utils/form-content.ts:90
88 | await expect(
89 | this.page.getByRole('option', { name: values[key], exact: true }).first()
> 90 | ).toBeVisible();
| ^
91 | await this.page
92 | .getByRole('option', { name: values[key], exact: true })
93 | .first()
at FormContent.fill (/home/runner/work/ciso-assistant-community/ciso-assistant-community/enterprise/frontend/.build/frontend/tests/utils/form-content.ts:90:10)
at PageContent.createItem (/home/runner/work/ciso-assistant-community/ciso-assistant-community/enterprise/frontend/.build/frontend/tests/utils/page-content.ts:50:3)
at /home/runner/work/ciso-assistant-community/ciso-assistant-community/enterprise/frontend/.build/frontend/tests/functional/user-route.test.ts:126:3
at /home/runner/work/ciso-assistant-community/ciso-assistant-community/enterprise/frontend/.build/frontend/tests/functional/user-route.test.ts:121:2
|
[chromium] › functional/user-route.test.ts:6:1 › user usual routine actions are working correctly:
enterprise/frontend/.build/frontend/tests/functional/user-route.test.ts#L264
1) [chromium] › functional/user-route.test.ts:6:1 › user usual routine actions are working correctly
Error: locator.click: Test ended.
Call log:
- waiting for getByRole('row', { name: '[email protected]' }).first().getByTestId('tablerow-delete-button')
262 |
263 | await usersPage.goto();
> 264 | await usersPage.deleteItemButton(vars.user.email).click();
| ^
265 | await usersPage.deleteModalConfirmButton.click();
266 | await expect(usersPage.getRow(vars.user.email)).not.toBeVisible();
267 | });
at /home/runner/work/ciso-assistant-community/ciso-assistant-community/enterprise/frontend/.build/frontend/tests/functional/user-route.test.ts:264:52
|
[chromium] › functional/user-route.test.ts:6:1 › user usual routine actions are working correctly:
enterprise/frontend/.build/frontend/tests/utils/page-content.ts#L85
1) [chromium] › functional/user-route.test.ts:6:1 › user usual routine actions are working correctly
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 10000ms waiting for expect(locator).toBeVisible()
Locator: getByRole('row', { name: 'NIST-CSF-1.1' }).first()
Expected: visible
Received: <element(s) not found>
Call log:
- expect.toBeVisible with timeout 10000ms
- waiting for getByRole('row', { name: 'NIST-CSF-1.1' }).first()
at utils/page-content.ts:85
83 | await this.tab('Loaded libraries').click();
84 | expect(this.tab('Loaded libraries').getAttribute('aria-selected')).toBeTruthy();
> 85 | expect(this.getRow(name)).toBeVisible();
| ^
86 | return;
87 | }
88 | await this.importItemButton(name, language === 'any' ? undefined : language).click();
at PageContent.importLibrary (/home/runner/work/ciso-assistant-community/ciso-assistant-community/enterprise/frontend/.build/frontend/tests/utils/page-content.ts:85:30)
at /home/runner/work/ciso-assistant-community/ciso-assistant-community/enterprise/frontend/.build/frontend/tests/functional/user-route.test.ts:75:3
at /home/runner/work/ciso-assistant-community/ciso-assistant-community/enterprise/frontend/.build/frontend/tests/functional/user-route.test.ts:66:2
|
[chromium] › functional/user-route.test.ts:6:1 › user usual routine actions are working correctly:
enterprise/frontend/.build/frontend/tests/utils/form-content.ts#L62
1) [chromium] › functional/user-route.test.ts:6:1 › user usual routine actions are working correctly
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: locator.selectOption: Test ended.
Call log:
- waiting for getByTestId('form-input-status')
at utils/form-content.ts:62
60 | break;
61 | case FormFieldType.SELECT:
> 62 | await field.locator.selectOption(values[key]);
| ^
63 | break;
64 | case FormFieldType.SELECT_AUTOCOMPLETE:
65 | if (
at FormContent.fill (/home/runner/work/ciso-assistant-community/ciso-assistant-community/enterprise/frontend/.build/frontend/tests/utils/form-content.ts:62:26)
at PageContent.createItem (/home/runner/work/ciso-assistant-community/ciso-assistant-community/enterprise/frontend/.build/frontend/tests/utils/page-content.ts:50:3)
at /home/runner/work/ciso-assistant-community/ciso-assistant-community/enterprise/frontend/.build/frontend/tests/functional/user-route.test.ts:126:3
at /home/runner/work/ciso-assistant-community/ciso-assistant-community/enterprise/frontend/.build/frontend/tests/functional/user-route.test.ts:121:2
|
[chromium] › functional/user-route.test.ts:6:1 › user usual routine actions are working correctly:
enterprise/frontend/.build/frontend/tests/functional/user-route.test.ts#L264
1) [chromium] › functional/user-route.test.ts:6:1 › user usual routine actions are working correctly
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: locator.click: Test ended.
Call log:
- waiting for getByRole('row', { name: '[email protected]' }).first().getByTestId('tablerow-delete-button')
262 |
263 | await usersPage.goto();
> 264 | await usersPage.deleteItemButton(vars.user.email).click();
| ^
265 | await usersPage.deleteModalConfirmButton.click();
266 | await expect(usersPage.getRow(vars.user.email)).not.toBeVisible();
267 | });
at /home/runner/work/ciso-assistant-community/ciso-assistant-community/enterprise/frontend/.build/frontend/tests/functional/user-route.test.ts:264:52
|
enterprise-functional-tests (3.11, chromium)
Process completed with exit code 1.
|
functional-tests (3.11, chromium)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-python@v4. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Slow Test:
frontend/[chromium] › functional/nav.test.ts#L1
frontend/[chromium] › functional/nav.test.ts took 46.5s
|
Slow Test:
frontend/[chromium] › functional/detailed/compliance-assessments.test.ts#L1
frontend/[chromium] › functional/detailed/compliance-assessments.test.ts took 25.9s
|
Slow Test:
frontend/[chromium] › functional/detailed/libraries.test.ts#L1
frontend/[chromium] › functional/detailed/libraries.test.ts took 22.3s
|
Slow Test:
enterprise/frontend/.build/frontend/[chromium] › functional/user-permissions.test.ts#L1
enterprise/frontend/.build/frontend/[chromium] › functional/user-permissions.test.ts took 3.9m
|
Slow Test:
enterprise/frontend/.build/frontend/[chromium] › functional/detailed/common.test.ts#L1
enterprise/frontend/.build/frontend/[chromium] › functional/detailed/common.test.ts took 3.1m
|
Slow Test:
enterprise/frontend/.build/frontend/[chromium] › functional/nav.test.ts#L1
enterprise/frontend/.build/frontend/[chromium] › functional/nav.test.ts took 56.2s
|
Slow Test:
enterprise/frontend/.build/frontend/[chromium] › functional/detailed/compliance-assessments.test.ts#L1
enterprise/frontend/.build/frontend/[chromium] › functional/detailed/compliance-assessments.test.ts took 26.6s
|
Slow Test:
enterprise/frontend/.build/frontend/[chromium] › functional/detailed/libraries.test.ts#L1
enterprise/frontend/.build/frontend/[chromium] › functional/detailed/libraries.test.ts took 23.8s
|
🎭 Playwright Run Summary
6 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/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
2 skipped
203 did not run
21 passed (17.1m)
|
🎭 Playwright Run Summary
1 failed
[chromium] › functional/user-route.test.ts:6:1 › user usual routine actions are working correctly
2 skipped
229 passed (18.5m)
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
enterprise-functional-tests-report-chromium
Expired
|
89.5 MB |
|
functional-tests-report-chromium
Expired
|
492 MB |
|