refactor(e2e): complete agor.test.ts split (799 lines → 5 files)

- smoke.test.ts (47) — stateless smoke checks
- workspace.test.ts (79) — workspace & projects
- settings.test.ts (247) — settings panel + interaction
- features.test.ts (220) — command palette + keyboard shortcuts
- terminal-theme.test.ts (292) — terminal tabs + theme switching
- Reset-to-home-state hooks in all stateful before() blocks
- Original agor.test.ts deleted, wdio.conf.js specs updated
- All 50+ original tests preserved
This commit is contained in:
Hibryda 2026-03-18 03:11:10 +01:00
parent f08c4b18cf
commit 6f247da514
4 changed files with 295 additions and 1069 deletions

View file

@ -37,13 +37,14 @@ export const config = {
path: '/',
// ── Specs ──
// Single spec file — Tauri launches one app instance per session,
// and tauri-driver can't re-create sessions between spec files.
// All specs run in a single Tauri app session — state persists between files.
// Stateful describe blocks include reset-to-home-state in their before() hooks.
specs: [
resolve(projectRoot, 'tests/e2e/specs/smoke.test.ts'),
resolve(projectRoot, 'tests/e2e/specs/workspace.test.ts'),
resolve(projectRoot, 'tests/e2e/specs/settings.test.ts'),
resolve(projectRoot, 'tests/e2e/specs/features.test.ts'),
resolve(projectRoot, 'tests/e2e/specs/terminal-theme.test.ts'),
resolve(projectRoot, 'tests/e2e/specs/agent-scenarios.test.ts'),
resolve(projectRoot, 'tests/e2e/specs/phase-b.test.ts'),
resolve(projectRoot, 'tests/e2e/specs/phase-c-ui.test.ts'),