Skip to content

Fix Donut Chart

Fix Donut Chart #49

Triggered via pull request February 25, 2024 01:53
Status Failure
Total duration 45m 44s
Artifacts 1

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/detailed/common.test.ts:66:4 › Tests on projects item › Tests on projects item details › Projects item details are showing properly: frontend/tests/utils/page-detail.ts#L74
1) [chromium] › functional/detailed/common.test.ts:66:4 › Tests on projects item › Tests on projects item details › Projects item details are showing properly Error: Timed out 10000ms waiting for expect(locator).toHaveText(expected) Locator: getByTestId('lc-status-field-title') Expected pattern: /lc status/i Received string: "Status" Call log: - expect.soft.toHaveText with timeout 10000ms - waiting for getByTestId('lc-status-field-title') - locator resolved to <div data-testid="lc-status-field-title" class="text-…>Status</div> - unexpected value "Status" - locator resolved to <div data-testid="lc-status-field-title" class="text-…>Status</div> - unexpected value "Status" - locator resolved to <div data-testid="lc-status-field-title" class="text-…>Status</div> - unexpected value "Status" - locator resolved to <div data-testid="lc-status-field-title" class="text-…>Status</div> - unexpected value "Status" - locator resolved to <div data-testid="lc-status-field-title" class="text-…>Status</div> - unexpected value "Status" - locator resolved to <div data-testid="lc-status-field-title" class="text-…>Status</div> - unexpected value "Status" - locator resolved to <div data-testid="lc-status-field-title" class="text-…>Status</div> - unexpected value "Status" - locator resolved to <div data-testid="lc-status-field-title" class="text-…>Status</div> - unexpected value "Status" - locator resolved to <div data-testid="lc-status-field-title" class="text-…>Status</div> - unexpected value "Status" - locator resolved to <div data-testid="lc-status-field-title" class="text-…>Status</div> - unexpected value "Status" - locator resolved to <div data-testid="lc-status-field-title" class="text-…>Status</div> - unexpected value "Status" - locator resolved to <div data-testid="lc-status-field-title" class="text-…>Status</div> - unexpected value "Status" - locator resolved to <div data-testid="lc-status-field-title" class="text-…>Status</div> - unexpected value "Status" - locator resolved to <div data-testid="lc-status-field-title" class="text-…>Status</div> - unexpected value "Status" at utils/page-detail.ts:74 72 | await expect 73 | .soft(this.page.getByTestId(key.replaceAll('_', '-') + '-field-title')) > 74 | .toHaveText(new RegExp(key.replaceAll('_', ' '), 'i')); | ^ 75 | 76 | if (this.form.fields.get(key)?.type === FormFieldType.CHECKBOX) { 77 | await expect at PageDetail.verifyItem (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/page-detail.ts:74:8) at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/detailed/common.test.ts:70:5
[chromium] › functional/detailed/common.test.ts:66:4 › Tests on projects item › Tests on projects item details › Projects item details are showing properly: frontend/tests/utils/page-detail.ts#L74
1) [chromium] › functional/detailed/common.test.ts:66:4 › Tests on projects item › Tests on projects item details › Projects item details are showing properly Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 10000ms waiting for expect(locator).toHaveText(expected) Locator: getByTestId('lc-status-field-title') Expected pattern: /lc status/i Received string: "Status" Call log: - expect.soft.toHaveText with timeout 10000ms - waiting for getByTestId('lc-status-field-title') - locator resolved to <div data-testid="lc-status-field-title" class="text-…>Status</div> - unexpected value "Status" - locator resolved to <div data-testid="lc-status-field-title" class="text-…>Status</div> - unexpected value "Status" - locator resolved to <div data-testid="lc-status-field-title" class="text-…>Status</div> - unexpected value "Status" - locator resolved to <div data-testid="lc-status-field-title" class="text-…>Status</div> - unexpected value "Status" - locator resolved to <div data-testid="lc-status-field-title" class="text-…>Status</div> - unexpected value "Status" - locator resolved to <div data-testid="lc-status-field-title" class="text-…>Status</div> - unexpected value "Status" - locator resolved to <div data-testid="lc-status-field-title" class="text-…>Status</div> - unexpected value "Status" - locator resolved to <div data-testid="lc-status-field-title" class="text-…>Status</div> - unexpected value "Status" - locator resolved to <div data-testid="lc-status-field-title" class="text-…>Status</div> - unexpected value "Status" - locator resolved to <div data-testid="lc-status-field-title" class="text-…>Status</div> - unexpected value "Status" - locator resolved to <div data-testid="lc-status-field-title" class="text-…>Status</div> - unexpected value "Status" - locator resolved to <div data-testid="lc-status-field-title" class="text-…>Status</div> - unexpected value "Status" - locator resolved to <div data-testid="lc-status-field-title" class="text-…>Status</div> - unexpected value "Status" - locator resolved to <div data-testid="lc-status-field-title" class="text-…>Status</div> - unexpected value "Status" at utils/page-detail.ts:74 72 | await expect 73 | .soft(this.page.getByTestId(key.replaceAll('_', '-') + '-field-title')) > 74 | .toHaveText(new RegExp(key.replaceAll('_', ' '), 'i')); | ^ 75 | 76 | if (this.form.fields.get(key)?.type === FormFieldType.CHECKBOX) { 77 | await expect at PageDetail.verifyItem (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/page-detail.ts:74:8) at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/detailed/common.test.ts:70:5
[chromium] › functional/detailed/common.test.ts:66:4 › Tests on projects item › Tests on projects item details › Projects item details are showing properly: frontend/tests/utils/page-detail.ts#L74
1) [chromium] › functional/detailed/common.test.ts:66:4 › Tests on projects item › Tests on projects item details › Projects item details are showing properly Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 10000ms waiting for expect(locator).toHaveText(expected) Locator: getByTestId('lc-status-field-title') Expected pattern: /lc status/i Received string: "Status" Call log: - expect.soft.toHaveText with timeout 10000ms - waiting for getByTestId('lc-status-field-title') - locator resolved to <div data-testid="lc-status-field-title" class="text-…>Status</div> - unexpected value "Status" - locator resolved to <div data-testid="lc-status-field-title" class="text-…>Status</div> - unexpected value "Status" - locator resolved to <div data-testid="lc-status-field-title" class="text-…>Status</div> - unexpected value "Status" - locator resolved to <div data-testid="lc-status-field-title" class="text-…>Status</div> - unexpected value "Status" - locator resolved to <div data-testid="lc-status-field-title" class="text-…>Status</div> - unexpected value "Status" - locator resolved to <div data-testid="lc-status-field-title" class="text-…>Status</div> - unexpected value "Status" - locator resolved to <div data-testid="lc-status-field-title" class="text-…>Status</div> - unexpected value "Status" - locator resolved to <div data-testid="lc-status-field-title" class="text-…>Status</div> - unexpected value "Status" - locator resolved to <div data-testid="lc-status-field-title" class="text-…>Status</div> - unexpected value "Status" - locator resolved to <div data-testid="lc-status-field-title" class="text-…>Status</div> - unexpected value "Status" - locator resolved to <div data-testid="lc-status-field-title" class="text-…>Status</div> - unexpected value "Status" - locator resolved to <div data-testid="lc-status-field-title" class="text-…>Status</div> - unexpected value "Status" - locator resolved to <div data-testid="lc-status-field-title" class="text-…>Status</div> - unexpected value "Status" - locator resolved to <div data-testid="lc-status-field-title" class="text-…>Status</div> - unexpected value "Status" at utils/page-detail.ts:74 72 | await expect 73 | .soft(this.page.getByTestId(key.replaceAll('_', '-') + '-field-title')) > 74 | .toHaveText(new RegExp(key.replaceAll('_', ' '), 'i')); | ^ 75 | 76 | if (this.form.fields.get(key)?.type === FormFieldType.CHECKBOX) { 77 | await expect at PageDetail.verifyItem (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/page-detail.ts:74:8) at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/detailed/common.test.ts:70:5
[chromium] › functional/detailed/login.test.ts:11:1 › login / logout process is working properly: frontend/tests/utils/login-page.ts#L46
2) [chromium] › functional/detailed/login.test.ts:11:1 › login / logout process is working properly Error: Timed out 10000ms waiting for expect(locator).toHaveURL(expected) Locator: locator(':root') Expected pattern: /^.*\/login$/ Received string: "http://localhost:4173/analytics" Call log: - expect.toHaveURL with timeout 10000ms - waiting for locator(':root') - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/analytics" - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/analytics" - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/analytics" - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/analytics" - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/analytics" - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/analytics" - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/analytics" - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/analytics" - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/analytics" - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/analytics" - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/analytics" - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/analytics" - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/analytics" - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/analytics" at utils/login-page.ts:46 44 | case State.False: 45 | // url must be /login > 46 | await expect(this.page).toHaveURL(/^.*\/login$/); | ^ 47 | break; 48 | case State.True: 49 | //url must be /login?next=/ at LoginPage.hasUrl (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/login-page.ts:46:29) at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/detailed/login.test.ts:23:18
[chromium] › functional/detailed/login.test.ts:11:1 › login / logout process is working properly: frontend/tests/utils/login-page.ts#L46
2) [chromium] › functional/detailed/login.test.ts:11:1 › login / logout process is working properly Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 10000ms waiting for expect(locator).toHaveURL(expected) Locator: locator(':root') Expected pattern: /^.*\/login$/ Received string: "http://localhost:4173/analytics" Call log: - expect.toHaveURL with timeout 10000ms - waiting for locator(':root') - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/analytics" - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/analytics" - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/analytics" - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/analytics" - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/analytics" - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/analytics" - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/analytics" - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/analytics" - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/analytics" - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/analytics" - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/analytics" - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/analytics" - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/analytics" - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/analytics" at utils/login-page.ts:46 44 | case State.False: 45 | // url must be /login > 46 | await expect(this.page).toHaveURL(/^.*\/login$/); | ^ 47 | break; 48 | case State.True: 49 | //url must be /login?next=/ at LoginPage.hasUrl (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/login-page.ts:46:29) at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/detailed/login.test.ts:23:18
[chromium] › functional/detailed/login.test.ts:11:1 › login / logout process is working properly: frontend/tests/utils/login-page.ts#L46
2) [chromium] › functional/detailed/login.test.ts:11:1 › login / logout process is working properly Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 10000ms waiting for expect(locator).toHaveURL(expected) Locator: locator(':root') Expected pattern: /^.*\/login$/ Received string: "http://localhost:4173/analytics" Call log: - expect.toHaveURL with timeout 10000ms - waiting for locator(':root') - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/analytics" - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/analytics" - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/analytics" - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/analytics" - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/analytics" - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/analytics" - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/analytics" - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/analytics" - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/analytics" - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/analytics" - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/analytics" - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/analytics" - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/analytics" - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/analytics" at utils/login-page.ts:46 44 | case State.False: 45 | // url must be /login > 46 | await expect(this.page).toHaveURL(/^.*\/login$/); | ^ 47 | break; 48 | case State.True: 49 | //url must be /login?next=/ at LoginPage.hasUrl (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/login-page.ts:46:29) at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/detailed/login.test.ts:23:18
[chromium] › functional/nav.test.ts:9:1 › sidebar navigation tests: frontend/tests/utils/analytics-page.ts#L11
3) [chromium] › functional/nav.test.ts:9:1 › sidebar navigation tests ──────────────────────────── Error: Timed out 10000ms waiting for expect(locator).toHaveText(expected) Locator: locator('#page-title') Expected string: "Analytics" Received string: "" Call log: - expect.soft.toHaveText with timeout 10000ms - waiting for locator('#page-title') at utils/analytics-page.ts:11 9 | 10 | async hasTitle() { > 11 | await expect.soft(this.pageTitle).toHaveText('Analytics'); | ^ 12 | } 13 | } 14 | at AnalyticsPage.hasTitle (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/analytics-page.ts:11:37) at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/nav.test.ts:14:23 at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/nav.test.ts:12:2
[chromium] › functional/nav.test.ts:9:1 › sidebar navigation tests: frontend/tests/functional/nav.test.ts#L1
3) [chromium] › functional/nav.test.ts:9:1 › sidebar navigation tests ──────────────────────────── Test timeout of 150000ms exceeded.
[chromium] › functional/nav.test.ts:9:1 › sidebar navigation tests: frontend/tests/utils/sidebar.ts#L38
3) [chromium] › functional/nav.test.ts:9:1 › sidebar navigation tests ──────────────────────────── Error: locator.click: Test ended. Call log: - waiting for locator('#overview') at utils/sidebar.ts:38 36 | async click(parent: string, tab: string) { 37 | if (!(await this.page.getByTestId('accordion-item-' + tab.substring(1)).isVisible())) { > 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(); at SideBar.click (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/sidebar.ts:38:74) 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/utils/analytics-page.ts#L11
3) [chromium] › functional/nav.test.ts:9:1 › sidebar navigation tests ──────────────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 10000ms waiting for expect(locator).toHaveText(expected) Locator: locator('#page-title') Expected string: "Analytics" Received string: "" Call log: - expect.soft.toHaveText with timeout 10000ms - waiting for locator('#page-title') at utils/analytics-page.ts:11 9 | 10 | async hasTitle() { > 11 | await expect.soft(this.pageTitle).toHaveText('Analytics'); | ^ 12 | } 13 | } 14 | at AnalyticsPage.hasTitle (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/analytics-page.ts:11:37) at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/nav.test.ts:14:23 at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/nav.test.ts:12: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
12 failed [chromium] › functional/detailed/common.test.ts:66:4 › Tests on projects item › Tests on projects item details › Projects item details are showing properly [chromium] › functional/detailed/login.test.ts:11:1 › login / logout process is working properly [chromium] › functional/nav.test.ts:9:1 › sidebar navigation tests ───────────────────────────── [chromium] › functional/nav.test.ts:72:1 › sidebar component tests ───────────────────────────── [chromium] › functional/startup.test.ts:3:1 › startup tests ──────────────────────────────────── [chromium] › functional/user-route.test.ts:6:1 › user usual routine actions are working correctly [firefox] › functional/detailed/common.test.ts:66:4 › Tests on projects item › Tests on projects item details › Projects item details are showing properly [firefox] › functional/detailed/login.test.ts:11:1 › login / logout process is working properly [firefox] › functional/nav.test.ts:9:1 › sidebar navigation tests ────────────────────────────── [firefox] › functional/nav.test.ts:72:1 › sidebar component tests ────────────────────────────── [firefox] › functional/startup.test.ts:3:1 › startup tests ───────────────────────────────────── [firefox] › functional/user-route.test.ts:6:1 › user usual routine actions are working correctly 40 skipped 12 passed (43.8m)

Artifacts

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