feat(e2e): generate comprehensive E2E tests and fix TypeScript compilation errors

- Add 23 E2E test spec files covering 94 API endpoints across business domains
- Fix TypeScript compilation errors (file casing, duplicate export, implicit any)
- Update Playwright deprecated API calls (getByPlaceholderText -> getByPlaceholder)
- Tests cover: dashboard, sessions, tasks, workspace, loops, issues-queue, discovery,
  skills, commands, memory, project-overview, session-detail, cli-history,
  cli-config, cli-installations, lite-tasks, review, mcp, hooks, rules,
  index-management, prompt-memory, file-explorer

Test coverage: 100% domain coverage (23/23 domains)
API coverage: 94 endpoints across 23 business domains
Quality gates: 0 CRITICAL issues, all anti-patterns passed

Note: 700+ timeout tests require backend server (port 3456) to pass
This commit is contained in:
catlog22
2026-02-01 11:15:11 +08:00
parent cf401d00e1
commit fc1471396c
29 changed files with 9258 additions and 11 deletions

View File

@@ -148,7 +148,7 @@ test.describe('[Workspace Switching] - E2E Data Isolation Tests', () => {
test('WS-05: should clear workspace data on logout', async ({ page }) => {
// Set some workspace-specific data
await page.evaluate(() => {
localStorage.setItem('workspace-1-data', JSON.stringify { user: 'alice' }));
localStorage.setItem('workspace-1-data', JSON.stringify({ user: 'alice' }));
localStorage.setItem('ccw-current-workspace', 'workspace-1');
});