Skip to content

fix: prevent useActionState state becoming undefined when redirect() is called (#589) #1925

fix: prevent useActionState state becoming undefined when redirect() is called (#589)

fix: prevent useActionState state becoming undefined when redirect() is called (#589) #1925

Triggered via pull request March 21, 2026 14:31
Status Success
Total duration 2m 50s
Artifacts 3

ci.yml

on: pull_request
Matrix: create-next-app
Matrix: e2e
Matrix: test-integration
Vitest (integration report)
24s
Vitest (integration report)
Fit to window
Zoom out
Zoom in

Annotations

1 error and 7 notices
[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
🎭 Playwright Run Summary
16 passed (8.9s)
🎭 Playwright Run Summary
37 passed (11.5s)
🎭 Playwright Run Summary
13 passed (6.9s)
🎭 Playwright Run Summary
22 passed (10.1s)
🎭 Playwright Run Summary
84 passed (23.0s)
🎭 Playwright Run Summary
37 passed (21.0s)
🎭 Playwright Run Summary
1 flaky [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:0cb4db3a8e705fa0463fcd2742501d136e501090295fa4c52583fb11dedf2ba8
blob-report-2 Expired
68 KB
sha256:36c2361fbcd3013a55bba4ee05761cf4a1f69b3afa06dd4eac389123444d4655
blob-report-3 Expired
29 KB
sha256:d9e5be8d0b5fc6e19a47b43491b04fb81a9213a9a8b6cd797d13f537f472f94a