fix: prevent useActionState state becoming undefined when redirect() is called (#589) #1916
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
16 passed (9.3s)
|
|
🎭 Playwright Run Summary
37 passed (11.5s)
|
|
🎭 Playwright Run Summary
22 passed (11.1s)
|
|
🎭 Playwright Run Summary
13 passed (6.9s)
|
|
🎭 Playwright Run Summary
37 passed (20.1s)
|
|
🎭 Playwright Run Summary
84 passed (22.8s)
|
|
🎭 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.1m)
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
blob-report-1
Expired
|
44.4 KB |
sha256:5a42e810ecbe0e1ebb881537ad04570925ce39c0d23a642c526627447f177b7d
|
|
|
blob-report-2
Expired
|
68 KB |
sha256:8be409927c7015194c2945ec1b2709e8b0447852096c0320939adf5bfc67539e
|
|
|
blob-report-3
Expired
|
29 KB |
sha256:1e3cb68d420cba4d29ce85eef38cf7c334bc5ffedc50dea70df497d6642fbd1d
|
|