Skip to content

Fix functional tests #73

Fix functional tests

Fix functional tests #73

Re-run triggered February 26, 2024 17:12
Status Failure
Total duration 15m 21s
Artifacts 2

functional-tests.yml

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

Annotations

10 errors, 1 warning, and 1 notice
[chromium] › functional/nav.test.ts:9:1 › sidebar navigation tests: frontend/tests/functional/nav.test.ts#L33
1) [chromium] › functional/nav.test.ts:9:1 › sidebar navigation tests › navigation link are working properly Error: Timed out 10000ms waiting for expect(locator).toHaveText(expected) Locator: locator('#page-title') Expected string: "Policies" Received string: "Assets" 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">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" 31 | await expect.soft(logedPage.pageTitle).toHaveText([temporaryPageTitle[item.name]]); 32 | } else { > 33 | await expect.soft(logedPage.pageTitle).toHaveText(localItems(languageTag())[item.name]); | ^ 34 | } 35 | } 36 | } at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/nav.test.ts:33:46 at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/nav.test.ts:18:2
[chromium] › functional/nav.test.ts:9:1 › sidebar navigation tests: frontend/tests/functional/nav.test.ts#L33
1) [chromium] › functional/nav.test.ts:9:1 › sidebar navigation tests › navigation link are working properly Error: Timed out 10000ms waiting for expect(locator).toHaveText(expected) Locator: locator('#page-title') Expected string: "Risk matrices" Received string: "Assets" 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">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" 31 | await expect.soft(logedPage.pageTitle).toHaveText([temporaryPageTitle[item.name]]); 32 | } else { > 33 | await expect.soft(logedPage.pageTitle).toHaveText(localItems(languageTag())[item.name]); | ^ 34 | } 35 | } 36 | } at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/nav.test.ts:33:46 at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/nav.test.ts:18:2
[chromium] › functional/nav.test.ts:9:1 › sidebar navigation tests: frontend/tests/utils/sidebar.ts#L40
1) [chromium] › functional/nav.test.ts:9:1 › sidebar navigation tests › navigation link are working properly Error: Timed out 10000ms waiting for expect(locator).toBeVisible() Locator: getByTestId('accordion-item-risk-assessments') Expected: visible Received: hidden Call log: - expect.toBeVisible with timeout 10000ms - waiting for getByTestId('accordion-item-risk-assessments') at utils/sidebar.ts:40 38 | await this.page.locator('#' + parent.toLowerCase().replace(' ', '-')).click(); 39 | } > 40 | await expect(this.page.getByTestId('accordion-item-' + tab.substring(1))).toBeVisible(); | ^ 41 | await this.page.getByTestId('accordion-item-' + tab.substring(1)).click(); 42 | await this.page.waitForURL(tab); 43 | } at SideBar.click (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/sidebar.ts:40:77) at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/nav.test.ts:28:6 at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/nav.test.ts:18:2
[chromium] › functional/nav.test.ts:9:1 › sidebar navigation tests: frontend/tests/functional/nav.test.ts#L33
1) [chromium] › functional/nav.test.ts:9:1 › sidebar navigation tests › navigation link are working properly Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 10000ms waiting for expect(locator).toHaveText(expected) Locator: locator('#page-title') Expected string: "Policies" Received string: "Assets" 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">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" 31 | await expect.soft(logedPage.pageTitle).toHaveText([temporaryPageTitle[item.name]]); 32 | } else { > 33 | await expect.soft(logedPage.pageTitle).toHaveText(localItems(languageTag())[item.name]); | ^ 34 | } 35 | } 36 | } at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/nav.test.ts:33:46 at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/nav.test.ts:18:2
[chromium] › functional/nav.test.ts:9:1 › sidebar navigation tests: frontend/tests/functional/nav.test.ts#L33
1) [chromium] › functional/nav.test.ts:9:1 › sidebar navigation tests › navigation link are working properly Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 10000ms waiting for expect(locator).toHaveText(expected) Locator: locator('#page-title') Expected string: "Risk matrices" Received string: "Assets" 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">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" 31 | await expect.soft(logedPage.pageTitle).toHaveText([temporaryPageTitle[item.name]]); 32 | } else { > 33 | await expect.soft(logedPage.pageTitle).toHaveText(localItems(languageTag())[item.name]); | ^ 34 | } 35 | } 36 | } at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/nav.test.ts:33:46 at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/nav.test.ts:18:2
[chromium] › functional/nav.test.ts:9:1 › sidebar navigation tests: frontend/tests/utils/sidebar.ts#L40
1) [chromium] › functional/nav.test.ts:9:1 › sidebar navigation tests › navigation link are working properly Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 10000ms waiting for expect(locator).toBeVisible() Locator: getByTestId('accordion-item-risk-assessments') Expected: visible Received: hidden Call log: - expect.toBeVisible with timeout 10000ms - waiting for getByTestId('accordion-item-risk-assessments') at utils/sidebar.ts:40 38 | await this.page.locator('#' + parent.toLowerCase().replace(' ', '-')).click(); 39 | } > 40 | await expect(this.page.getByTestId('accordion-item-' + tab.substring(1))).toBeVisible(); | ^ 41 | await this.page.getByTestId('accordion-item-' + tab.substring(1)).click(); 42 | await this.page.waitForURL(tab); 43 | } at SideBar.click (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/sidebar.ts:40:77) at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/nav.test.ts:28:6 at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/nav.test.ts:18:2
[chromium] › functional/nav.test.ts:9:1 › sidebar navigation tests: frontend/tests/functional/nav.test.ts#L33
1) [chromium] › functional/nav.test.ts:9:1 › sidebar navigation tests › navigation link are working properly Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 10000ms waiting for expect(locator).toHaveText(expected) Locator: locator('#page-title') Expected string: "Policies" Received string: "Assets" 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">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" 31 | await expect.soft(logedPage.pageTitle).toHaveText([temporaryPageTitle[item.name]]); 32 | } else { > 33 | await expect.soft(logedPage.pageTitle).toHaveText(localItems(languageTag())[item.name]); | ^ 34 | } 35 | } 36 | } at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/nav.test.ts:33:46 at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/nav.test.ts:18:2
[chromium] › functional/nav.test.ts:9:1 › sidebar navigation tests: frontend/tests/functional/nav.test.ts#L33
1) [chromium] › functional/nav.test.ts:9:1 › sidebar navigation tests › navigation link are working properly Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 10000ms waiting for expect(locator).toHaveText(expected) Locator: locator('#page-title') Expected string: "Risk matrices" Received string: "Assets" 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">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" 31 | await expect.soft(logedPage.pageTitle).toHaveText([temporaryPageTitle[item.name]]); 32 | } else { > 33 | await expect.soft(logedPage.pageTitle).toHaveText(localItems(languageTag())[item.name]); | ^ 34 | } 35 | } 36 | } at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/nav.test.ts:33:46 at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/nav.test.ts:18:2
[chromium] › functional/nav.test.ts:9:1 › sidebar navigation tests: frontend/tests/utils/sidebar.ts#L40
1) [chromium] › functional/nav.test.ts:9:1 › sidebar navigation tests › navigation link are working properly Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 10000ms waiting for expect(locator).toBeVisible() Locator: getByTestId('accordion-item-risk-assessments') Expected: visible Received: hidden Call log: - expect.toBeVisible with timeout 10000ms - waiting for getByTestId('accordion-item-risk-assessments') at utils/sidebar.ts:40 38 | await this.page.locator('#' + parent.toLowerCase().replace(' ', '-')).click(); 39 | } > 40 | await expect(this.page.getByTestId('accordion-item-' + tab.substring(1))).toBeVisible(); | ^ 41 | await this.page.getByTestId('accordion-item-' + tab.substring(1)).click(); 42 | await this.page.waitForURL(tab); 43 | } at SideBar.click (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/sidebar.ts:40:77) at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/nav.test.ts:28:6 at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/nav.test.ts:18:2
[firefox] › functional/nav.test.ts:9:1 › sidebar navigation tests: frontend/tests/functional/nav.test.ts#L33
2) [firefox] › functional/nav.test.ts:9:1 › sidebar navigation tests › navigation link are working properly Error: Timed out 10000ms waiting for expect(locator).toHaveText(expected) Locator: locator('#page-title') Expected string: "Policies" Received string: "Assets" 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">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Assets</span> - unexpected value "Assets" 31 | await expect.soft(logedPage.pageTitle).toHaveText([temporaryPageTitle[item.name]]); 32 | } else { > 33 | await expect.soft(logedPage.pageTitle).toHaveText(localItems(languageTag())[item.name]); | ^ 34 | } 35 | } 36 | } at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/nav.test.ts:33:46 at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/nav.test.ts:18:2
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 ────────────────────────────── 2 skipped 60 passed (13.3m)

Artifacts

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