Repository navigation
test(chat): pin browser history fixture locale - #571
Conversation
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes. ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review. 📝 SummarySummary by CodeRabbit
WalkthroughThe browser QA fixture now sets its Playwright page locale to ChangesBrowser QA Locale
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~5 minutes Change: Other Suggested reviewers: Merge Risk: ⚪ Minimal · up to The fixture now uses a deterministic English locale for its English assertions; no actionable merge risk remains. Architecture SummaryArchitecture risk: 🔵 Low · up to The change affects 1 system. Changed systems: Architecture concerns Review detailsSystems and components
Before / after behavior
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
dcbef74 to
1d65074
Compare
devswha
left a comment
There was a problem hiding this comment.
Independent review (merge-own lane).
Classification: test fix. scripts/chat-history-browser-qa.ts is part of the required "Integration and browser" lane (scripts/ci-browser.sh:22), and it failed on any PC whose browser language is not English: the fixture renders in the browser's language while the assertions use English text. It merges because the required browser lane must pass on a non-English maintainer machine. It changes no product code and needs no CHANGELOG entry.
What I checked:
browser.newPage({ locale: "en-US" })pins only this fixture's page, and the product's language setting is untouched.- The pin is what makes it pass: with
locale: "ko-KR"instead, the script fails withTimeoutError: waitFor: Timeout 10000ms exceeded.
What I ran (separate worktree, bun run check run bun scripts/chat-history-browser-qa.ts):
- On 1d65074, all five steps PASS (duplicate requests and pane changes, clear while in flight, 409 recovery, reused tool ids, product pane commits).
- Updated with
main(now 9183b06):bun run check fast1715 pass, 0 fail, and the script again passes all five steps. Fast checks and Integration and browser are green on 9183b06. There are no review threads.
Change
The chat history browser regression uses English text selectors but let Chromium inherit the PC's language. On a Korean Mac it rendered the empty-chat message in Korean and timed out even though the history was correctly empty.
Create this fixture's browser page with
locale: "en-US", matching its selectors and keeping the product's language setting unchanged.Validation
ko-KR, the empty state was Korean, and the English locator timed out with zero chat turns.