Uh oh!
There was an error while loading. Please reload this page.
test(start): test that multiple Set-Cookie headers are not lost during redirect - #5978
Conversation
View your CI Pipeline Execution ↗ for commit 16b0fa2
☁️ Nx Cloud last updated this comment at |
WalkthroughAdds end-to-end tests and routes (index + target) for a multi-cookie redirect flow in both React Start and Solid Start; index routes set three cookies server-side then redirect, target routes read and display cookies using js-cookie, and package manifests gain js-cookie and Changes
Sequence DiagramsequenceDiagram
participant Test as Test/User
participant Browser as Browser
participant Server as App Server
participant Target as Target Route
Test->>Browser: Navigate to /multi-cookie-redirect
Browser->>Server: GET /multi-cookie-redirect
Server->>Server: set-cookie: session=..., csrf=..., theme=...
Server-->>Browser: 302 Redirect → /multi-cookie-redirect/target
Browser->>Browser: Store Set-Cookie headers
Browser->>Target: GET /multi-cookie-redirect/target (follow)
Target->>Target: On mount/read cookies via js-cookie
Target->>Test: Render cookie values (data-testid)
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes
Suggested labels
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (1)
🧰 Additional context used📓 Path-based instructions (1)**/*.{ts,tsx}📄 CodeRabbit inference engine (AGENTS.md)
Files:
🧠 Learnings (1)📚 Learning: 2025-10-01T18:30:26.591ZApplied to files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
🔇 Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Uh oh!
There was an error while loading. Please reload this page.
The behavior is already correct in TanStack Start, but this test make sure that setting multiple cookies work when redirecting. Similar to this issue in SolidStart:
Summary by CodeRabbit
New Features
Tests
Chores
✏️ Tip: You can customize this high-level summary in your review settings.