Skip to content

Fix clicking cancel opens a native confirmation in requirement assessment edit view #2221

Fix clicking cancel opens a native confirmation in requirement assessment edit view

Fix clicking cancel opens a native confirmation in requirement assessment edit view #2221

Triggered via pull request September 30, 2024 18:20
Status Success
Total duration 20m 30s
Artifacts 2

functional-tests.yml

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

Annotations

6 errors, 11 warnings, and 2 notices
[chromium] › functional/user-route.test.ts:6:1 › user usual routine actions are working correctly: enterprise/frontend/.build/frontend/tests/utils/page-content.ts#L95
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:95 93 | await this.tab('Loaded libraries').click(); 94 | expect(this.tab('Loaded libraries').getAttribute('aria-selected')).toBeTruthy(); > 95 | expect(this.getRow(name)).toBeVisible(); | ^ 96 | } 97 | 98 | 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:95: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#L116
1) [chromium] › functional/user-route.test.ts:6:1 › user usual routine actions are working correctly Error: locator.clear: Test ended. Call log: - waiting for getByTestId('form-input-due-date') at utils/form-content.ts:116 114 | break; 115 | case FormFieldType.DATE: > 116 | await field.locator.clear(); | ^ 117 | case FormFieldType.NUMBER: 118 | await field?.locator.fill(values[key].toString()); 119 | break; at FormContent.fill (/home/runner/work/ciso-assistant-community/ciso-assistant-community/enterprise/frontend/.build/frontend/tests/utils/form-content.ts:116: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 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: frontend/tests/utils/page-content.ts#L95
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:95 93 | await this.tab('Loaded libraries').click(); 94 | expect(this.tab('Loaded libraries').getAttribute('aria-selected')).toBeTruthy(); > 95 | expect(this.getRow(name)).toBeVisible(); | ^ 96 | } 97 | 98 | async viewItemDetail(value?: string) { at PageContent.importLibrary (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/page-content.ts:95:29) at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/user-route.test.ts:75:3 at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/user-route.test.ts:66:2
[chromium] › functional/user-route.test.ts:6:1 › user usual routine actions are working correctly: 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/frontend/tests/functional/user-route.test.ts:264:52
[chromium] › functional/user-route.test.ts:6:1 › user usual routine actions are working correctly: frontend/tests/utils/form-content.ts#L94
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('option', { name: 'NIST CSF v1.1', exact: true }).first() - locator resolved to <li role="option" aria-selected="false" class=" svelte-1v0qqru">NIST CSF v1.1</li> - attempting click action - waiting for element to be visible, enabled and stable - element was detached from the DOM, retrying at utils/form-content.ts:94 92 | .getByRole('option', { name: values[key], exact: true }) 93 | .first() > 94 | .click(); | ^ 95 | } 96 | } 97 | break; at FormContent.fill (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/form-content.ts:94:10) at PageContent.createItem (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/page-content.ts:50:3) at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/user-route.test.ts:126:3 at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/user-route.test.ts:121:2
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.0m
Slow Test: enterprise/frontend/.build/frontend/[chromium] › functional/nav.test.ts#L1
enterprise/frontend/.build/frontend/[chromium] › functional/nav.test.ts took 55.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.2s
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.6s
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/user-permissions.test.ts#L1
frontend/[chromium] › functional/user-permissions.test.ts took 3.6m
Slow Test: frontend/[chromium] › functional/detailed/common.test.ts#L1
frontend/[chromium] › functional/detailed/common.test.ts took 3.0m
Slow Test: frontend/[chromium] › functional/nav.test.ts#L1
frontend/[chromium] › functional/nav.test.ts took 55.2s
Slow Test: frontend/[chromium] › functional/detailed/compliance-assessments.test.ts#L1
frontend/[chromium] › functional/detailed/compliance-assessments.test.ts took 25.5s
Slow Test: frontend/[chromium] › functional/detailed/libraries.test.ts#L1
frontend/[chromium] › functional/detailed/libraries.test.ts took 22.7s
🎭 Playwright Run Summary
1 flaky [chromium] › functional/user-route.test.ts:6:1 › user usual routine actions are working correctly 2 skipped 229 passed (16.3m)
🎭 Playwright Run Summary
1 flaky [chromium] › functional/user-route.test.ts:6:1 › user usual routine actions are working correctly 2 skipped 229 passed (15.7m)

Artifacts

Produced during runtime
Name Size
enterprise-functional-tests-report-chromium Expired
59.9 MB
functional-tests-report-chromium Expired
60 MB