Skip to content

Ca 203 api tests for user permissions and roles #98

Ca 203 api tests for user permissions and roles

Ca 203 api tests for user permissions and roles #98

Triggered via pull request February 27, 2024 15:44
Status Failure
Total duration 17m 46s
Artifacts 1

functional-tests.yml

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

Annotations

8 errors, 1 warning, and 1 notice
[chromium] › functional/nav.test.ts:9:1 › sidebar navigation tests: frontend/tests/functional/nav.test.ts#L54
1) [chromium] › functional/nav.test.ts:9:1 › sidebar navigation tests › more panel links are working properly Error: Timed out 10000ms waiting for expect(locator).toHaveText(expected) Locator: locator('#page-title') Expected string: "Profile" Received string: "profile" Call log: - expect.soft.toHaveText with timeout 10000ms - waiting for locator('#page-title') - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" 52 | await expect(sideBar.morePanel).toHaveAttribute('inert'); 53 | await expect(page).toHaveURL('/profile'); > 54 | await expect.soft(logedPage.pageTitle).toHaveText('Profile'); | ^ 55 | 56 | await sideBar.moreButton.click(); 57 | await expect(sideBar.morePanel).not.toHaveAttribute('inert'); at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/nav.test.ts:54:42 at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/nav.test.ts:47:2
[chromium] › functional/nav.test.ts:9:1 › sidebar navigation tests: frontend/tests/functional/nav.test.ts#L54
1) [chromium] › functional/nav.test.ts:9:1 › sidebar navigation tests › more panel links are working properly Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 10000ms waiting for expect(locator).toHaveText(expected) Locator: locator('#page-title') Expected string: "Profile" Received string: "profile" Call log: - expect.soft.toHaveText with timeout 10000ms - waiting for locator('#page-title') - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" 52 | await expect(sideBar.morePanel).toHaveAttribute('inert'); 53 | await expect(page).toHaveURL('/profile'); > 54 | await expect.soft(logedPage.pageTitle).toHaveText('Profile'); | ^ 55 | 56 | await sideBar.moreButton.click(); 57 | await expect(sideBar.morePanel).not.toHaveAttribute('inert'); at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/nav.test.ts:54:42 at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/nav.test.ts:47:2
[chromium] › functional/nav.test.ts:9:1 › sidebar navigation tests: frontend/tests/functional/nav.test.ts#L54
1) [chromium] › functional/nav.test.ts:9:1 › sidebar navigation tests › more panel links are working properly Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 10000ms waiting for expect(locator).toHaveText(expected) Locator: locator('#page-title') Expected string: "Profile" Received string: "profile" Call log: - expect.soft.toHaveText with timeout 10000ms - waiting for locator('#page-title') - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" 52 | await expect(sideBar.morePanel).toHaveAttribute('inert'); 53 | await expect(page).toHaveURL('/profile'); > 54 | await expect.soft(logedPage.pageTitle).toHaveText('Profile'); | ^ 55 | 56 | await sideBar.moreButton.click(); 57 | await expect(sideBar.morePanel).not.toHaveAttribute('inert'); at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/nav.test.ts:54:42 at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/nav.test.ts:47:2
[firefox] › functional/nav.test.ts:9:1 › sidebar navigation tests: frontend/tests/functional/nav.test.ts#L54
2) [firefox] › functional/nav.test.ts:9:1 › sidebar navigation tests › more panel links are working properly Error: Timed out 10000ms waiting for expect(locator).toHaveText(expected) Locator: locator('#page-title') Expected string: "Profile" Received string: "profile" Call log: - expect.soft.toHaveText with timeout 10000ms - waiting for locator('#page-title') - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" 52 | await expect(sideBar.morePanel).toHaveAttribute('inert'); 53 | await expect(page).toHaveURL('/profile'); > 54 | await expect.soft(logedPage.pageTitle).toHaveText('Profile'); | ^ 55 | 56 | await sideBar.moreButton.click(); 57 | await expect(sideBar.morePanel).not.toHaveAttribute('inert'); at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/nav.test.ts:54:42 at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/nav.test.ts:47:2
[firefox] › functional/nav.test.ts:9:1 › sidebar navigation tests: frontend/tests/functional/nav.test.ts#L54
2) [firefox] › functional/nav.test.ts:9:1 › sidebar navigation tests › more panel links are working properly Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 10000ms waiting for expect(locator).toHaveText(expected) Locator: locator('#page-title') Expected string: "Profile" Received string: "profile" Call log: - expect.soft.toHaveText with timeout 10000ms - waiting for locator('#page-title') - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" 52 | await expect(sideBar.morePanel).toHaveAttribute('inert'); 53 | await expect(page).toHaveURL('/profile'); > 54 | await expect.soft(logedPage.pageTitle).toHaveText('Profile'); | ^ 55 | 56 | await sideBar.moreButton.click(); 57 | await expect(sideBar.morePanel).not.toHaveAttribute('inert'); at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/nav.test.ts:54:42 at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/nav.test.ts:47:2
[firefox] › functional/nav.test.ts:9:1 › sidebar navigation tests: frontend/tests/functional/nav.test.ts#L54
2) [firefox] › functional/nav.test.ts:9:1 › sidebar navigation tests › more panel links are working properly Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 10000ms waiting for expect(locator).toHaveText(expected) Locator: locator('#page-title') Expected string: "Profile" Received string: "profile" Call log: - expect.soft.toHaveText with timeout 10000ms - waiting for locator('#page-title') - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">profile</span> - unexpected value "profile" 52 | await expect(sideBar.morePanel).toHaveAttribute('inert'); 53 | await expect(page).toHaveURL('/profile'); > 54 | await expect.soft(logedPage.pageTitle).toHaveText('Profile'); | ^ 55 | 56 | await sideBar.moreButton.click(); 57 | await expect(sideBar.morePanel).not.toHaveAttribute('inert'); at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/nav.test.ts:54:42 at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/nav.test.ts:47:2
[chromium] › functional/detailed/common.test.ts:66:4 › Tests on compliance assessments item › Tests on compliance assessments item details › Compliance assessments item details are showing properly: frontend/tests/utils/base-page.ts#L29
3) [chromium] › functional/detailed/common.test.ts:66:4 › Tests on compliance assessments item › Tests on compliance assessments item details › Compliance assessments item details are showing properly Error: Timed out 15000ms waiting for expect(locator).toBeVisible() Locator: getByTestId('toast').filter({ hasText: /Successfully imported library urn:intuitem:risk:library:nist-csf-1.1.+/ }) Expected: visible Received: hidden Call log: - expect.toBeVisible with timeout 15000ms - waiting for getByTestId('toast').filter({ hasText: /Successfully imported library urn:intuitem:risk:library:nist-csf-1.1.+/ }) at utils/base-page.ts:29 27 | async isToastVisible(value: string, flags?: string | undefined, options?: {} | undefined) { 28 | const toast = this.page.getByTestId('toast').filter({ hasText: new RegExp(value, flags) }); > 29 | await expect(toast).toBeVisible(options); | ^ 30 | await toast.getByLabel('Dismiss toast').click(); 31 | await expect(toast).toBeHidden(); 32 | return toast; at PageContent.isToastVisible (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/base-page.ts:29:23) at PageContent.importLibrary (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/page-content.ts:82:14) at PageContent.createItem (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/page-content.ts:48:4) at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/detailed/common.test.ts:48:5
functional-tests (3.11)
Process completed with exit code 1.
functional-tests (3.11)
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/.
🎭 Playwright Run Summary
2 failed [chromium] › functional/nav.test.ts:9:1 › sidebar navigation tests ───────────────────────────── [firefox] › functional/nav.test.ts:9:1 › sidebar navigation tests ────────────────────────────── 1 flaky [chromium] › functional/detailed/common.test.ts:66:4 › Tests on compliance assessments item › Tests on compliance assessments item details › Compliance assessments item details are showing properly 2 skipped 59 passed (15.4m)

Artifacts

Produced during runtime
Name Size
functional-tests-report Expired
147 MB