mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-03-22 19:18:47 +08:00
fix: resolve all 92 frontend test failures across 13 test files
- Fix locale index: remove wrong 'cli-manager' prefix from flattenMessages (production i18n bug)
- Fix DialogStyleContext test: correct expected style for multi-select ('modal' not 'drawer')
- Fix useNotifications test: correct FIFO toast ordering (store appends, not prepends)
- Fix CcwToolsMcpCard test: add missing fetchRootDirectories mock
- Fix TickerMarquee test: add IntlProvider, handle duplicate marquee elements
- Fix useCommands test: add QueryClient/IntlProvider wrappers and workflowStore mock
- Fix Header test: remove obsolete LanguageSwitcher tests, add DialogStyleContext mock
- Fix QueuePage test: add non-empty mock data to prevent empty state rendering
- Fix EndpointsPage test: handle multiple matching elements with getAllByText
- Rewrite chartHooksIntegration test: mock fetch() instead of api.get(), add workflowStore
- Rewrite DashboardIntegration test: match current HomePage widget structure
- Fix A2UI components test: add DialogStyleContext mock
- Fix AnalysisPage/DiscoveryPage tests: add missing hook mocks
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -87,7 +87,7 @@ export default {
|
||||
...flattenMessages(reviewSession, 'reviewSession'),
|
||||
...flattenMessages(sessionDetail, 'sessionDetail'),
|
||||
...flattenMessages(skills, 'skills'),
|
||||
...flattenMessages(cliManager, 'cli-manager'),
|
||||
...flattenMessages(cliManager),
|
||||
...flattenMessages(cliMonitor, 'cliMonitor'),
|
||||
...flattenMessages(mcpManager, 'mcp'),
|
||||
...flattenMessages(codexlens, 'codexlens'),
|
||||
|
||||
@@ -87,7 +87,7 @@ export default {
|
||||
...flattenMessages(reviewSession, 'reviewSession'),
|
||||
...flattenMessages(sessionDetail, 'sessionDetail'),
|
||||
...flattenMessages(skills, 'skills'),
|
||||
...flattenMessages(cliManager, 'cli-manager'),
|
||||
...flattenMessages(cliManager),
|
||||
...flattenMessages(cliMonitor, 'cliMonitor'),
|
||||
...flattenMessages(mcpManager, 'mcp'),
|
||||
...flattenMessages(codexlens, 'codexlens'),
|
||||
|
||||
Reference in New Issue
Block a user