fix(shared): SettingsPage 测试 aria-label 断言对齐 key-echo 模式 - #1751
Conversation
SettingsMain title="设置加载失败" 迁移到 tw("settings.loadFailed") 后,
desktop/shared 测试 i18n 实例默认 'test' 语言(key-echo),tw() 返回
key 而非中文。将 SettingsPage.test.tsx 断言从 '设置加载失败' 改为
'settings.loadFailed' 匹配 key-echo 行为。
修复 PR #1750 引入的 frontend-desktop (1) 和 Frontend coverage baseline
(@agenthub/shared) CI 失败。
Co-authored-by: Cursor <cursor@vectorcontrol.tech>
|
Warning Review limit reached
Next review available in: 6 minutes Limit details: You’ve used all 1 included review currently available under your plan. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (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 |
Summary
SettingsPage.test.tsx断言getByRole('alert', { name: '设置加载失败' })在 PR fix(shared): 37 个硬编码中文 title/subtitle 迁移到 i18n 资源 #1750 后失败SettingsMain的title="设置加载失败"迁移到tw("settings.loadFailed"),key-echo 模式下返回 key 而非中文name: 'settings.loadFailed'匹配 key-echo 行为Test plan
vitest run src/workbench/pages/SettingsPage.test.tsx— 3/3 PASS