Jason
001ac14c85
test: add SettingsDialog integration tests and enhance MSW infrastructure
- Add comprehensive SettingsDialog integration tests with 3 test cases:
* Load default settings from MSW
* Import configuration and trigger success callback
* Save settings and handle restart prompt
- Extend MSW handlers with settings-related endpoints:
* get_settings/save_settings for settings management
* app_config_dir_override for custom config directory
* apply_claude_plugin_config for plugin integration
* import/export config file operations
* file/directory dialog mocks
- Add settings state management to MSW mock state:
* Settings state with default values
* appConfigDirOverride state
* Reset logic in resetProviderState()
- Mock @tauri-apps/api/path for DirectorySettings tests
- Refactor App.test.tsx to focus on happy path scenarios:
* Remove delete functionality test (covered in useProviderActions unit tests)
* Reorganize test flow: settings → switch → usage → create → edit → switch → duplicate
* Remove unnecessary state verifications
* Simplify event testing
All tests passing: 4 integration tests + 12 unit tests
2025-10-25 19:59:31 +08:00
..
2025-10-25 12:53:12 +08:00
2025-10-25 11:16:38 +08:00
2025-10-25 19:59:31 +08:00
2025-10-25 19:59:31 +08:00
2025-10-25 16:48:43 +08:00