E2E Tests #1081
Annotations
10 errors, 5 warnings, and 1 notice
🎭 Playwright tests:
test/e2e/authentication.test.ts#L24
1) [firefox] › authentication.test.ts:15:3 › Authentication › STAGING: should login and logout - `( @fast @secondary @development @staging @production )`
Error: Timed out 10000ms waiting for expect(locator).toHaveURL(expected)
Locator: locator(':root')
Expected pattern: /.*\/login\/.*/
Received string: "https://app.staging.crisiscleanup.io/"
Call log:
- expect.toHaveURL with timeout 10000ms
- waiting for locator(':root')
- locator resolved to <html lang="en">…</html>
- unexpected value "https://app.staging.crisiscleanup.io/"
- locator resolved to <html lang="en">…</html>
- unexpected value "https://app.staging.crisiscleanup.io/"
- locator resolved to <html lang="en">…</html>
- unexpected value "https://app.staging.crisiscleanup.io/"
- locator resolved to <html lang="en">…</html>
- unexpected value "https://app.staging.crisiscleanup.io/"
- locator resolved to <html lang="en">…</html>
- unexpected value "https://app.staging.crisiscleanup.io/"
- locator resolved to <html lang="en">…</html>
- unexpected value "https://app.staging.crisiscleanup.io/"
- locator resolved to <html lang="en">…</html>
- unexpected value "https://app.staging.crisiscleanup.io/"
- locator resolved to <html lang="en">…</html>
- unexpected value "https://app.staging.crisiscleanup.io/"
- locator resolved to <html lang="en">…</html>
- unexpected value "https://app.staging.crisiscleanup.io/"
- locator resolved to <html lang="en">…</html>
- unexpected value "https://app.staging.crisiscleanup.io/"
- locator resolved to <html lang="en">…</html>
- unexpected value "https://app.staging.crisiscleanup.io/"
- locator resolved to <html lang="en">…</html>
- unexpected value "https://app.staging.crisiscleanup.io/"
- locator resolved to <html lang="en">…</html>
- unexpected value "https://app.staging.crisiscleanup.io/"
- locator resolved to <html lang="en">…</html>
- unexpected value "https://app.staging.crisiscleanup.io/"
22 | ]),
23 | async ({ page }) => {
> 24 | await expect(page).toHaveURL(urlRegexes.login);
| ^
25 | await doLoginActions(page);
26 | await expect(page).toHaveURL(urlRegexes.oauthCallback);
27 | await expect(page).toHaveURL(urlRegexes.dashboard, { timeout: 15_000 });
at /home/runner/work/crisiscleanup-4-web/crisiscleanup-4-web/test/e2e/authentication.test.ts:24:26
|
🎭 Playwright tests:
test/e2e/authentication.test.ts#L24
1) [firefox] › authentication.test.ts:15:3 › Authentication › STAGING: should login and logout - `( @fast @secondary @development @staging @production )`
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 10000ms waiting for expect(locator).toHaveURL(expected)
Locator: locator(':root')
Expected pattern: /.*\/login\/.*/
Received string: "https://app.staging.crisiscleanup.io/"
Call log:
- expect.toHaveURL with timeout 10000ms
- waiting for locator(':root')
- locator resolved to <html lang="en">…</html>
- unexpected value "https://app.staging.crisiscleanup.io/"
- locator resolved to <html lang="en">…</html>
- unexpected value "https://app.staging.crisiscleanup.io/"
- locator resolved to <html lang="en">…</html>
- unexpected value "https://app.staging.crisiscleanup.io/"
- locator resolved to <html lang="en">…</html>
- unexpected value "https://app.staging.crisiscleanup.io/"
- locator resolved to <html lang="en">…</html>
- unexpected value "https://app.staging.crisiscleanup.io/"
- locator resolved to <html lang="en">…</html>
- unexpected value "https://app.staging.crisiscleanup.io/"
- locator resolved to <html lang="en">…</html>
- unexpected value "https://app.staging.crisiscleanup.io/"
- locator resolved to <html lang="en">…</html>
- unexpected value "https://app.staging.crisiscleanup.io/"
- locator resolved to <html lang="en">…</html>
- unexpected value "https://app.staging.crisiscleanup.io/"
- locator resolved to <html lang="en">…</html>
- unexpected value "https://app.staging.crisiscleanup.io/"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "https://app.staging.crisiscleanup.io/"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "https://app.staging.crisiscleanup.io/"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "https://app.staging.crisiscleanup.io/"
22 | ]),
23 | async ({ page }) => {
> 24 | await expect(page).toHaveURL(urlRegexes.login);
| ^
25 | await doLoginActions(page);
26 | await expect(page).toHaveURL(urlRegexes.oauthCallback);
27 | await expect(page).toHaveURL(urlRegexes.dashboard, { timeout: 15_000 });
at /home/runner/work/crisiscleanup-4-web/crisiscleanup-4-web/test/e2e/authentication.test.ts:24:26
|
🎭 Playwright tests:
test/e2e/authentication.test.ts#L37
1) [firefox] › authentication.test.ts:15:3 › Authentication › STAGING: should login and logout - `( @fast @secondary @development @staging @production )`
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 10000ms waiting for expect(locator).toHaveURL(expected)
Locator: locator(':root')
Expected pattern: /.*\/login\/.*/
Received string: "https://app.staging.crisiscleanup.io/dashboard"
Call log:
- expect.toHaveURL with timeout 10000ms
- waiting for locator(':root')
- locator resolved to <html lang="en-US">…</html>
- unexpected value "https://app.staging.crisiscleanup.io/dashboard"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "https://app.staging.crisiscleanup.io/dashboard"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "https://app.staging.crisiscleanup.io/dashboard"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "https://app.staging.crisiscleanup.io/dashboard"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "https://app.staging.crisiscleanup.io/dashboard"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "https://app.staging.crisiscleanup.io/dashboard"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "https://app.staging.crisiscleanup.io/dashboard"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "https://app.staging.crisiscleanup.io/dashboard"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "https://app.staging.crisiscleanup.io/dashboard"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "https://app.staging.crisiscleanup.io/dashboard"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "https://app.staging.crisiscleanup.io/dashboard"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "https://app.staging.crisiscleanup.io/dashboard"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "https://app.staging.crisiscleanup.io/dashboard"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "https://app.staging.crisiscleanup.io/dashboard"
35 | await logoutLink.click();
36 |
> 37 | await expect(page).toHaveURL(urlRegexes.login);
| ^
38 | },
39 | );
40 |
at /home/runner/work/crisiscleanup-4-web/crisiscleanup-4-web/test/e2e/authentication.test.ts:37:26
|
🎭 Playwright tests:
test/e2e/authentication.test.ts#L1
2) [firefox] › authentication.test.ts:41:3 › Authentication › STAGING: should redirect to 404 page when navigating to an invalid route, regardless of authentication status - `( @fast @secondary @development @staging @production )`
Test timeout of 60000ms exceeded.
|
🎭 Playwright tests:
test/e2e/authentication.test.ts#L57
2) [firefox] › authentication.test.ts:41:3 › Authentication › STAGING: should redirect to 404 page when navigating to an invalid route, regardless of authentication status - `( @fast @secondary @development @staging @production )`
Error: page.goto: Target page, context or browser has been closed
55 | const visitAndAssert = async () => {
56 | for (const route of invalidRoutes) {
> 57 | await page.goto(route);
| ^
58 | await assertIs404();
59 | }
60 | };
at visitAndAssert (/home/runner/work/crisiscleanup-4-web/crisiscleanup-4-web/test/e2e/authentication.test.ts:57:22)
at /home/runner/work/crisiscleanup-4-web/crisiscleanup-4-web/test/e2e/authentication.test.ts:66:13
|
🎭 Playwright tests:
test/e2e/authentication.test.ts#L1
2) [firefox] › authentication.test.ts:41:3 › Authentication › STAGING: should redirect to 404 page when navigating to an invalid route, regardless of authentication status - `( @fast @secondary @development @staging @production )`
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Test timeout of 60000ms exceeded.
|
🎭 Playwright tests:
test/e2e/authentication.test.ts#L57
2) [firefox] › authentication.test.ts:41:3 › Authentication › STAGING: should redirect to 404 page when navigating to an invalid route, regardless of authentication status - `( @fast @secondary @development @staging @production )`
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: page.goto: Target page, context or browser has been closed
55 | const visitAndAssert = async () => {
56 | for (const route of invalidRoutes) {
> 57 | await page.goto(route);
| ^
58 | await assertIs404();
59 | }
60 | };
at visitAndAssert (/home/runner/work/crisiscleanup-4-web/crisiscleanup-4-web/test/e2e/authentication.test.ts:57:22)
at /home/runner/work/crisiscleanup-4-web/crisiscleanup-4-web/test/e2e/authentication.test.ts:66:13
|
🎭 Playwright tests:
test/e2e/authentication.test.ts#L1
2) [firefox] › authentication.test.ts:41:3 › Authentication › STAGING: should redirect to 404 page when navigating to an invalid route, regardless of authentication status - `( @fast @secondary @development @staging @production )`
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Test timeout of 60000ms exceeded.
|
🎭 Playwright tests:
test/e2e/authentication.test.ts#L57
2) [firefox] › authentication.test.ts:41:3 › Authentication › STAGING: should redirect to 404 page when navigating to an invalid route, regardless of authentication status - `( @fast @secondary @development @staging @production )`
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: page.goto: Target page, context or browser has been closed
55 | const visitAndAssert = async () => {
56 | for (const route of invalidRoutes) {
> 57 | await page.goto(route);
| ^
58 | await assertIs404();
59 | }
60 | };
at visitAndAssert (/home/runner/work/crisiscleanup-4-web/crisiscleanup-4-web/test/e2e/authentication.test.ts:57:22)
at /home/runner/work/crisiscleanup-4-web/crisiscleanup-4-web/test/e2e/authentication.test.ts:66:13
|
🎭 Playwright tests:
test/e2e/authentication.test.ts#L1
3) [firefox] › authentication.test.ts:140:3 › Authentication › STAGING: should redirect from login related unauthorized pages with existing session - `( @slow @primary @development @staging @production )`
Test timeout of 60000ms exceeded.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
🎭 Playwright tests:
[firefox] › pages/myOrganization.test.ts#L1
[firefox] › pages/myOrganization.test.ts took 3.7m
|
🎭 Playwright tests:
[firefox-setup] › auth.setup.ts#L1
[firefox-setup] › auth.setup.ts took 1.5m
|
🎭 Playwright tests:
[firefox] › pages/login.test.ts#L1
[firefox] › pages/login.test.ts took 44.2s
|
The following artifacts were uploaded using a version of actions/upload-artifact that is scheduled for deprecation: "all-blob-reports-development", "all-blob-reports-production", "all-blob-reports-staging", "e2e-report-development-12296062320-attempt_1", "e2e-report-production-12296062320-attempt_1", "e2e-report-staging-12296062320-attempt_1", "matrix-outputs".
Please update your workflow to use v4 of the artifact actions.
Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/
|
🎭 Playwright tests
7 failed
[firefox] › authentication.test.ts:15:3 › Authentication › STAGING: should login and logout - `( @fast @secondary @development @staging @production )`
[firefox] › authentication.test.ts:41:3 › Authentication › STAGING: should redirect to 404 page when navigating to an invalid route, regardless of authentication status - `( @fast @secondary @development @staging @production )`
[firefox] › authentication.test.ts:140:3 › Authentication › STAGING: should redirect from login related unauthorized pages with existing session - `( @slow @primary @development @staging @production )`
[firefox] › pages/dashboard.test.ts:149:3 › DashboardPage › STAGING: should have working incident selector - `( @slow @secondary @READ @development @staging @production )`
[firefox] › pages/dashboard.test.ts:236:3 › DashboardPage › STAGING: should show/hide add incident, request redeploy & invite user modals correctly - `( @slow @secondary @READ @development @staging @production )`
[firefox] › pages/user-profile.test.ts:22:3 › UserProfile › STAGING: should have visible data-testids - `( @primary @slow @READ @development @staging @production )`
[firefox] › pages/work.test.ts:139:3 › WorkPage › STAGING: should create new worksite - `( @secondary @slow @Write @staging )`
1 flaky
[firefox] › pages/phone.test.ts:85:3 › PhonePage › STAGING: should have visible data-testids - `( @primary @slow @READ @development @staging @production )`
1 skipped
24 passed (34.3m)
|
Loading