add ref id to risk scenario #2910
functional-tests.yml
on: pull_request
Matrix: enterprise-functional-tests
Matrix: functional-tests
Annotations
2 errors, 11 warnings, and 2 notices
[chromium] › functional/nav.test.ts:104:1 › sidebar component tests:
enterprise/frontend/.build/frontend/tests/utils/login-page.ts#L50
1) [chromium] › functional/nav.test.ts:104:1 › sidebar component tests ───────────────────────────
TimeoutError: page.waitForURL: Timeout 10000ms exceeded.
=========================== logs ===========================
waiting for navigation until "load"
============================================================
at utils/login-page.ts:50
48 | await this.loginButton.click();
49 | if (email === LoginPage.defaultEmail && password === LoginPage.defaultPassword) {
> 50 | await this.page.waitForURL(/^.*\/((?!login).)*$/, { timeout: 10000 });
| ^
51 | } else {
52 | await this.page.waitForURL(/^.*\/login(\?next=\/.*)?$/);
53 | }
at LoginPage.login (/home/runner/work/ciso-assistant-community/ciso-assistant-community/enterprise/frontend/.build/frontend/tests/utils/login-page.ts:50:20)
at Object.logedPage (/home/runner/work/ciso-assistant-community/ciso-assistant-community/enterprise/frontend/.build/frontend/tests/utils/test-utils.ts:266:3)
|
[chromium] › functional/user-permissions.test.ts:129:6 › Approver user has the right permissions › domains permissions › Approver user can view domains:
enterprise/frontend/.build/frontend/tests/functional/user-permissions.test.ts#L92
2) [chromium] › functional/user-permissions.test.ts:129:6 › Approver user has the right permissions › domains permissions › Approver user can view domains
Error: Timed out 20000ms waiting for expect(locator).toHaveURL(expected)
Locator: locator(':root')
Expected string: "http://localhost:4173/analytics"
Received string: "http://localhost:4173/login"
Call log:
- expect.toHaveURL with timeout 20000ms
- waiting for locator(':root')
- locator resolved to <html lang="en">…</html>
- unexpected value "http://localhost:4173/login"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://localhost:4173/login"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://localhost:4173/login"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://localhost:4173/login"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://localhost:4173/login"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://localhost:4173/login"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://localhost:4173/login"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://localhost:4173/login"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://localhost:4173/login"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://localhost:4173/login"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://localhost:4173/login"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://localhost:4173/login"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://localhost:4173/login"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://localhost:4173/login"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://localhost:4173/login"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://localhost:4173/login"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://localhost:4173/login"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://localhost:4173/login"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://localhost:4173/login"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://localhost:4173/login"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://localhost:4173/login"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://localhost:4173/login"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://localhost:4173/login"
- locator resolved to <html lang="en">…</html>
- unexpected value "http://localhost:4173/login"
90 | await loginPage.goto();
91 | await loginPage.login(vars.user.email, vars.user.password);
> 92 | await expect(page).toHaveURL('/analytics');
| ^
93 | });
94 |
95 | test.use({
at /home/runner/work/ciso-assistant-community/ciso-assistant-community/enterprise/frontend/.build/frontend/tests/functional/user-permissions.test.ts:92:24
|
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 4.4m
|
Slow Test:
frontend/[chromium] › functional/detailed/common.test.ts#L1
frontend/[chromium] › functional/detailed/common.test.ts took 3.7m
|
Slow Test:
frontend/[chromium] › fuzz/open-redirect/open-redirect.test.ts#L1
frontend/[chromium] › fuzz/open-redirect/open-redirect.test.ts took 1.9m
|
Slow Test:
frontend/[chromium] › functional/nav.test.ts#L1
frontend/[chromium] › functional/nav.test.ts took 1.3m
|
Slow Test:
frontend/[chromium] › functional/user-route.test.ts#L1
frontend/[chromium] › functional/user-route.test.ts took 52.4s
|
Slow Test:
enterprise/frontend/.build/frontend/[chromium] › functional/detailed/common.test.ts#L1
enterprise/frontend/.build/frontend/[chromium] › functional/detailed/common.test.ts took 4.0m
|
Slow Test:
enterprise/frontend/.build/frontend/[chromium] › fuzz/open-redirect/open-redirect.test.ts#L1
enterprise/frontend/.build/frontend/[chromium] › fuzz/open-redirect/open-redirect.test.ts took 2.7m
|
Slow Test:
enterprise/frontend/.build/frontend/[chromium] › functional/user-route.test.ts#L1
enterprise/frontend/.build/frontend/[chromium] › functional/user-route.test.ts took 57.1s
|
Slow Test:
enterprise/frontend/.build/frontend/[chromium] › functional/detailed/libraries.test.ts#L1
enterprise/frontend/.build/frontend/[chromium] › functional/detailed/libraries.test.ts took 37.3s
|
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 29.2s
|
🎭 Playwright Run Summary
2 skipped
231 passed (16.6m)
|
🎭 Playwright Run Summary
2 flaky
[chromium] › functional/nav.test.ts:104:1 › sidebar component tests ────────────────────────────
[chromium] › functional/user-permissions.test.ts:129:6 › Approver user has the right permissions › domains permissions › Approver user can view domains
2 skipped
229 passed (20.5m)
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
enterprise-functional-tests-report-chromium
|
38.4 MB |
|
functional-tests-report-chromium
|
6.19 MB |
|