Skip to content

Create nis_anssi_rules.yaml #15

Create nis_anssi_rules.yaml

Create nis_anssi_rules.yaml #15

Triggered via pull request February 13, 2024 23:17
Status Failure
Total duration 15m 9s
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/login.test.ts:7:1 › login page as expected title: frontend/tests/functional/login.test.ts#L8
1) [chromium] › functional/login.test.ts:7:1 › login page as expected title ────────────────────── Error: Timed out 5000ms waiting for expect(locator).toBeVisible() Locator: getByRole('heading', { name: 'Hello there 👋' }) Expected: visible Received: hidden Call log: - expect.soft.toBeVisible with timeout 5000ms - waiting for getByRole('heading', { name: 'Hello there 👋' }) 6 | 7 | baseTest('login page as expected title', async ({ page }) => { > 8 | await expect.soft(page.getByRole('heading', { name: 'Hello there 👋' })).toBeVisible(); | ^ 9 | }); 10 | 11 | test('login / logout process is working properly', async ({ at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/login.test.ts:8:75
[chromium] › functional/login.test.ts:7:1 › login page as expected title: frontend/tests/functional/login.test.ts#L8
1) [chromium] › functional/login.test.ts:7:1 › login page as expected title ────────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toBeVisible() Locator: getByRole('heading', { name: 'Hello there 👋' }) Expected: visible Received: hidden Call log: - expect.soft.toBeVisible with timeout 5000ms - waiting for getByRole('heading', { name: 'Hello there 👋' }) 6 | 7 | baseTest('login page as expected title', async ({ page }) => { > 8 | await expect.soft(page.getByRole('heading', { name: 'Hello there 👋' })).toBeVisible(); | ^ 9 | }); 10 | 11 | test('login / logout process is working properly', async ({ at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/login.test.ts:8:75
[chromium] › functional/login.test.ts:7:1 › login page as expected title: frontend/tests/functional/login.test.ts#L8
1) [chromium] › functional/login.test.ts:7:1 › login page as expected title ────────────────────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toBeVisible() Locator: getByRole('heading', { name: 'Hello there 👋' }) Expected: visible Received: hidden Call log: - expect.soft.toBeVisible with timeout 5000ms - waiting for getByRole('heading', { name: 'Hello there 👋' }) 6 | 7 | baseTest('login page as expected title', async ({ page }) => { > 8 | await expect.soft(page.getByRole('heading', { name: 'Hello there 👋' })).toBeVisible(); | ^ 9 | }); 10 | 11 | test('login / logout process is working properly', async ({ at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/login.test.ts:8:75
[chromium] › functional/login.test.ts:11:1 › login / logout process is working properly: frontend/tests/utils/login-page.ts#L38
2) [chromium] › functional/login.test.ts:11:1 › login / logout process is working properly ─────── Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected) Locator: locator(':root') Expected pattern: /^.*\/login$/ Received string: "http://localhost:4173/logout" Call log: - expect.toHaveURL with timeout 5000ms - 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/logout" - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/logout" - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/logout" - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/logout" - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/logout" - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/logout" at utils/login-page.ts:38 36 | case State.False: 37 | // url must be /login > 38 | await expect(this.page).toHaveURL(/^.*\/login$/); | ^ 39 | break; 40 | case State.True: 41 | //url must be /login?next=/ at LoginPage.hasUrl (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/login-page.ts:38:29) at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/login.test.ts:23:18
[chromium] › functional/login.test.ts:11:1 › login / logout process is working properly: frontend/tests/utils/login-page.ts#L38
2) [chromium] › functional/login.test.ts:11:1 › login / logout process is working properly ─────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected) Locator: locator(':root') Expected pattern: /^.*\/login$/ Received string: "http://localhost:4173/logout" Call log: - expect.toHaveURL with timeout 5000ms - 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/logout" - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/logout" - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/logout" - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/logout" - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/logout" at utils/login-page.ts:38 36 | case State.False: 37 | // url must be /login > 38 | await expect(this.page).toHaveURL(/^.*\/login$/); | ^ 39 | break; 40 | case State.True: 41 | //url must be /login?next=/ at LoginPage.hasUrl (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/login-page.ts:38:29) at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/login.test.ts:23:18
[chromium] › functional/login.test.ts:11:1 › login / logout process is working properly: frontend/tests/utils/login-page.ts#L38
2) [chromium] › functional/login.test.ts:11:1 › login / logout process is working properly ─────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected) Locator: locator(':root') Expected pattern: /^.*\/login$/ Received string: "http://localhost:4173/logout" Call log: - expect.toHaveURL with timeout 5000ms - 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/logout" - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/logout" - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/logout" - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/logout" - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/logout" - locator resolved to <html lang="en">…</html> - unexpected value "http://localhost:4173/logout" at utils/login-page.ts:38 36 | case State.False: 37 | // url must be /login > 38 | await expect(this.page).toHaveURL(/^.*\/login$/); | ^ 39 | break; 40 | case State.True: 41 | //url must be /login?next=/ at LoginPage.hasUrl (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/login-page.ts:38:29) at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/login.test.ts:23:18
[chromium] › functional/nav.test.ts:7:1 › sidebar navigation tests: frontend/tests/functional/nav.test.ts#L36
3) [chromium] › functional/nav.test.ts:7:1 › sidebar navigation tests ──────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected) Locator: locator('#page-title') Expected string: "Policies" Received string: "Security measures" Call log: - expect.soft.toHaveText with timeout 5000ms - waiting for locator('#page-title') - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Security measures</span> - unexpected value "Security measures" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Security measures</span> - unexpected value "Security measures" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Security measures</span> - unexpected value "Security measures" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Security measures</span> - unexpected value "Security measures" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Security measures</span> - unexpected value "Security measures" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Security measures</span> - unexpected value "Security measures" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Security measures</span> - unexpected value "Security measures" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Security measures</span> - unexpected value "Security measures" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Security measures</span> - unexpected value "Security measures" 34 | await expect.soft(layout.pageTitle).toHaveText(temporaryPageTitle[item.name]); 35 | } else { > 36 | await expect.soft(layout.pageTitle).toHaveText(item.name); | ^ 37 | } 38 | } 39 | } at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/nav.test.ts:36:43 at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/nav.test.ts:20:2
[chromium] › functional/nav.test.ts:7:1 › sidebar navigation tests: frontend/tests/utils/test-utils.ts#L271
3) [chromium] › functional/nav.test.ts:7:1 › sidebar navigation tests ──────────────────────────── Error: An error with status code 500 occured when trying to achieve operation expect(received).toBeLessThan(expected) Expected: < 400 Received: 500 at utils/test-utils.ts:271 269 | response.status(), 270 | 'An error with status code ' + response.status() + ' occured when trying to achieve operation' > 271 | ).toBeLessThan(400); | ^ 272 | }); 273 | page.on('console', (message) => { 274 | expect(message.type()).not.toBe('error'); at Page.<anonymous> (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/test-utils.ts:271:5)
[chromium] › functional/nav.test.ts:7:1 › sidebar navigation tests: frontend/tests/functional/nav.test.ts#L36
3) [chromium] › functional/nav.test.ts:7:1 › sidebar navigation tests ──────────────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected) Locator: locator('#page-title') Expected string: "Policies" Received string: "Security measures" Call log: - expect.soft.toHaveText with timeout 5000ms - waiting for locator('#page-title') - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Security measures</span> - unexpected value "Security measures" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Security measures</span> - unexpected value "Security measures" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Security measures</span> - unexpected value "Security measures" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Security measures</span> - unexpected value "Security measures" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Security measures</span> - unexpected value "Security measures" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Security measures</span> - unexpected value "Security measures" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Security measures</span> - unexpected value "Security measures" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Security measures</span> - unexpected value "Security measures" - locator resolved to <span id="page-title" class="text-2xl font-bold pb-1">Security measures</span> - unexpected value "Security measures" 34 | await expect.soft(layout.pageTitle).toHaveText(temporaryPageTitle[item.name]); 35 | } else { > 36 | await expect.soft(layout.pageTitle).toHaveText(item.name); | ^ 37 | } 38 | } 39 | } at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/nav.test.ts:36:43 at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/nav.test.ts:20:2
[chromium] › functional/nav.test.ts:7:1 › sidebar navigation tests: frontend/tests/utils/test-utils.ts#L271
3) [chromium] › functional/nav.test.ts:7:1 › sidebar navigation tests ──────────────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: An error with status code 500 occured when trying to achieve operation expect(received).toBeLessThan(expected) Expected: < 400 Received: 500 at utils/test-utils.ts:271 269 | response.status(), 270 | 'An error with status code ' + response.status() + ' occured when trying to achieve operation' > 271 | ).toBeLessThan(400); | ^ 272 | }); 273 | page.on('console', (message) => { 274 | expect(message.type()).not.toBe('error'); at Page.<anonymous> (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/test-utils.ts:271:5)
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
8 failed [chromium] › functional/login.test.ts:7:1 › login page as expected title ─────────────────────── [chromium] › functional/login.test.ts:11:1 › login / logout process is working properly ──────── [chromium] › functional/nav.test.ts:7:1 › sidebar navigation tests ───────────────────────────── [chromium] › functional/user-route.test.ts:38:1 › user usual routine actions are working correctly [firefox] › functional/login.test.ts:7:1 › login page as expected title ──────────────────────── [firefox] › functional/login.test.ts:11:1 › login / logout process is working properly ───────── [firefox] › functional/nav.test.ts:7:1 › sidebar navigation tests ────────────────────────────── [firefox] › functional/user-route.test.ts:38:1 › user usual routine actions are working correctly 8 passed (13.0m)

Artifacts

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