test(web): verify locale switches, cookies and hard reloads - #11992
Conversation
…-11979-language-switcher
Bugbot is paused — on-demand spend limit reachedBugbot uses usage-based billing for this team and has hit its on-demand spend limit. A team admin can raise the spend limit in the Cursor dashboard, or wait for the next billing cycle to continue. |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Team Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughAdds Playwright coverage for locale switching, nested-route preservation, reload behavior, and locale metadata. Adds an environment-controlled mode for running tests against an external web server. Removes overlapping marketing navigation coverage. ChangesLocale navigation regression coverage
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to This change adds locale-navigation regression coverage and optional preview-server test targeting. It covers the reported stale-content behavior across multiple locales and reloads, with no current merge-blocking risk identified. 🚥 Pre-merge checks | ✅ 14 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (14 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
|
All contributors have signed the CLA ✍️ ✅ |
Bugbot is paused — on-demand spend limit reachedBugbot uses usage-based billing for this team and has hit its on-demand spend limit. A team admin can raise the spend limit in the Cursor dashboard, or wait for the next billing cycle to continue. |
d7df76b Merge pull request manaflow-ai#11950 from manaflow-ai/fix-sidebar-ctrl4-current f6bcab4 fix sidebar settings refresh and accessibility 7e841b3 test: update sidebar shortcut snapshot count 4b93b37 inject host-scoped shortcut defaults 518b173 fix settings shortcut override synchronization 37e26cb fix(sidebar): remove duplicate defaults observer 59c0c4f fix(sidebar): refresh gated shortcuts and preserve visible tab ff99843 Right sidebar: drag a mode-bar pill to reorder tabs inline bc99270 Rebuild shortcut matcher snapshots after installing the default-stroke provider b13fdc4 Right sidebar: customizable tabs and positional digit shortcuts 9dc605b test: right-sidebar digit shortcuts should follow visible tab positions ec4d9c8 fix: revalidate load generation after scope await (manaflow-ai#11995) bb9d7f5 test(web): verify locale switches, cookies and hard reloads (manaflow-ai#11992) 4382448 Merge pull request manaflow-ai#11988 from manaflow-ai/feat/new-machine-size-picker 6b28f66 Complete machine size localization dd74333 Fix machine size picker label 0231b0e Improve cloud machine size picker 48440db fix(computer-use): require explicit setup and skill installation (manaflow-ai#11972) e2b7300 Fix iOS connection handoff and stale computer lists (manaflow-ai#11880) 1e871f4 Stabilize Iroh multi-Mac sessions and sign-out cleanup (manaflow-ai#11874)
…-ai#11992) * fix(web): refresh content after locale navigation * fix(web): navigate directly to canonical English URL * fix(web): derive canonical path from browser URL * test(web): cover locale cookies, client navigation and reloads * test(web): await document load before checking persisted locale
The locale switcher must keep the selected language, NEXT_LOCALE cookie, URL, metadata, document language/direction, and rendered headings consistent when returning to English. The implementation now on main writes the locale cookie before a full document navigation; this follow-up retains it and removes the conflicting older navigation attempts.
This PR expands the previous browser regression into four behavior tests:
CMUX_WEB_TEST_BASE_URL lets the existing test:instant command run the same checks against a dev server or deployed preview. Default CI still builds and starts the production-style server.
Validation:
Locale changes perform a full document load, trading preservation of transient page state for a single server-rendered locale. This behavior already exists on main; the final diff changes tests and their runner configuration only. All localized routes and catalogs are preserved; localization audit found no changed user-facing strings.
Closes #11979
Deployment note: Vercel previews for this branch are still queued in the shared team build queue (confirmed with Vercel CLI). The running local dev server is http://localhost:4077/ko. The final PR diff changes no production runtime files.
Summary by CodeRabbit