fix: prevent useActionState state becoming undefined when redirect() is called (#589) #1923
Annotations
4 errors, 1 warning, and 7 notices
|
E2E (app-router)
Process completed with exit code 1.
|
|
[app-router] › tests/e2e/app-router/server-actions.spec.ts:174:7 › useActionState › useActionState: redirect does not cause undefined state (issue #589):
tests/e2e/app-router/server-actions.spec.ts#L188
1) [app-router] › tests/e2e/app-router/server-actions.spec.ts:174:7 › useActionState › useActionState: redirect does not cause undefined state (issue #589)
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(page).toHaveURL(expected) failed
Expected pattern: /\/action-state-test$/
Received string: "http://localhost:4174/action-state-redirect"
Timeout: 5000ms
Call log:
- Expect "toHaveURL" with timeout 5000ms
9 × unexpected value "http://localhost:4174/action-state-redirect"
186 |
187 | // Should navigate to /action-state-test without crashing
> 188 | await expect(page).toHaveURL(/\/action-state-test$/);
| ^
189 | await expect(page.locator("h1")).toHaveText("useActionState Test");
190 | });
191 | });
at /home/runner/work/vinext/vinext/tests/e2e/app-router/server-actions.spec.ts:188:24
|
|
[app-router] › tests/e2e/app-router/server-actions.spec.ts:174:7 › useActionState › useActionState: redirect does not cause undefined state (issue #589):
tests/e2e/app-router/server-actions.spec.ts#L188
1) [app-router] › tests/e2e/app-router/server-actions.spec.ts:174:7 › useActionState › useActionState: redirect does not cause undefined state (issue #589)
Error: expect(page).toHaveURL(expected) failed
Expected pattern: /\/action-state-test$/
Received string: "http://localhost:4174/action-state-redirect"
Timeout: 5000ms
Call log:
- Expect "toHaveURL" with timeout 5000ms
9 × unexpected value "http://localhost:4174/action-state-redirect"
186 |
187 | // Should navigate to /action-state-test without crashing
> 188 | await expect(page).toHaveURL(/\/action-state-test$/);
| ^
189 | await expect(page.locator("h1")).toHaveText("useActionState Test");
190 | });
191 | });
at /home/runner/work/vinext/vinext/tests/e2e/app-router/server-actions.spec.ts:188:24
|
|
CI
Process completed with exit code 1.
|
|
E2E (app-router)
No files were found with the provided path: playwright-report/. No artifacts will be uploaded.
|
|
🎭 Playwright Run Summary
13 passed (6.7s)
|
|
🎭 Playwright Run Summary
16 passed (8.8s)
|
|
🎭 Playwright Run Summary
22 passed (10.6s)
|
|
🎭 Playwright Run Summary
37 passed (12.0s)
|
|
🎭 Playwright Run Summary
37 passed (19.7s)
|
|
🎭 Playwright Run Summary
84 passed (23.3s)
|
|
🎭 Playwright Run Summary
1 failed
[app-router] › tests/e2e/app-router/server-actions.spec.ts:174:7 › useActionState › useActionState: redirect does not cause undefined state (issue #589)
9 skipped
283 passed (1.2m)
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
blob-report-1
Expired
|
44.4 KB |
sha256:64c5d0372b564260f54ec6c95278e4bb019706d3d8db8a230dbf7887cf114dc0
|
|
|
blob-report-2
Expired
|
68 KB |
sha256:af7453ffead5c201db50fdf363a744c85f8328293ae45076a58587479acbb257
|
|
|
blob-report-3
Expired
|
29.1 KB |
sha256:ede78c233d320b4b972bf1dfa6df7760cad9b28499ac43de9e9257b3234c3249
|
|