Adding CCB CyberFundamentals Framework - Essential (Full) #443
Annotations
3 errors, 1 warning, and 1 notice
Run tests:
frontend/tests/utils/login-page.ts#L47
1) [firefox] › functional/user-permissions.test.ts:21:9 › Approver user has the right permissions › user can set his password
Error: page.waitForURL: Target page, context or browser has been closed
=========================== logs ===========================
waiting for navigation until "load"
============================================================
at utils/login-page.ts:47
45 | await this.loginButton.click();
46 | if (email === LoginPage.defaultEmail && password === LoginPage.defaultPassword) {
> 47 | await this.page.waitForURL(/^.*\/((?!login).)*$/, { timeout: 10000 });
| ^
48 | }
49 | else {
50 | await this.page.waitForURL(/^.*\/login(\?next=\/.*)?$/);
at LoginPage.login (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/login-page.ts:47:29)
at Object.populateDatabase (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/test-utils.ts:276:3)
|
Run tests:
frontend/tests/functional/user-permissions.test.ts#L80
2) [firefox] › functional/user-permissions.test.ts:101:21 › Approver user has the right permissions › domains permissions › Approver user can view domains
Error: Timed out 10000ms 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 10000ms
- 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"
78 | await loginPage.goto();
79 | await loginPage.login(vars.user.email, vars.user.password);
> 80 | await expect(page).toHaveURL('/analytics');
| ^
81 | });
82 |
83 | test.use({
at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/user-permissions.test.ts:80:36
|
Run tests:
frontend/tests/functional/user-permissions.test.ts#L152
2) [firefox] › functional/user-permissions.test.ts:101:21 › Approver user has the right permissions › domains permissions › Approver user can view domains
"afterAll" hook timeout of 50000ms exceeded.
150 | });
151 |
> 152 | test.afterAll('cleanup', async ({ browser }) => {
| ^
153 | const page = await browser.newPage();
154 | const loginPage = new LoginPage(page);
155 | const usersPage = new PageContent(page, '/users', 'Users');
at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/user-permissions.test.ts:152:14
|
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/.
|
Run tests
2 flaky
[firefox] › functional/user-permissions.test.ts:21:9 › Approver user has the right permissions › user can set his password
[firefox] › functional/user-permissions.test.ts:101:21 › Approver user has the right permissions › domains permissions › Approver user can view domains
4 skipped
456 passed (33.5m)
|
Loading