refactor(skills): add skill-adapter and refactor SkillMarket

- Add skill-adapter.ts to bridge configStore and UI skill formats
- Refactor SkillMarket to use new skill-adapter instead of skill-discovery
- Add health check state to connectionStore
- Update multiple components with improved typing
- Clean up test artifacts and add new test results
- Update README and add skill-market-mvp plan

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
iven
2026-03-21 00:28:03 +08:00
parent 54ccc0a7b0
commit 48a430fc97
50 changed files with 1523 additions and 360 deletions

48
tests/e2e/README.md Normal file
View File

@@ -0,0 +1,48 @@
# E2E Tests
This directory contains end-to-end tests for ZCLAW desktop application.
## Test Strategy
Due to ZCLAW being a Tauri 22.0 desktop application, E2E testing requires special consideration:
### Option 1: Vitest + @testing-library/react (Current)
- Unit and integration tests use Vitest
- Component tests use @testing-library/react
- Already configured and working (312 tests passing)
### Option 2: Playwright for Web UI (Future)
- Playwright is available in `desktop/node_modules`
- Can test the React UI layer independently
- Cannot directly test Tauri native functionality
### Option 3: Tauri Driver (Recommended for Full E2E)
- Use Tauri's built-in test utilities
- Requires `tauri-driver` package
- Can test full application including native functionality
## Current Status
- **Unit Tests**: ✅ 312 tests passing
- **Integration Tests**: ✅ Store and component integration verified
- **E2E Tests**: 🚧 Framework setup in progress
## Running Tests
```bash
# Unit/Integration tests
pnpm vitest run
# E2E tests (when implemented)
pnpm test:e2e
```
## Test Coverage
| Area | Unit | Integration | E2E |
|------|------|-------------|-----|
| Stores | ✅ | ✅ | - |
| Components | ✅ | ✅ | - |
| Gateway Client | ✅ | ✅ | - |
| Tauri Commands | - | - | 🚧 |
| Full User Flow | - | - | 🚧 |