Files
desktop/apps/hanzo-desktop/playwright.config.ts
zeekay 7511d1fd7b feat: comprehensive E2E testing with Zen Nano model
- Add E2E workflow matching zoo-desktop structure
- Copy all 6 E2E test suites (40 tests total):
  * engine-integration.spec.ts - Hanzo node + engine tests
  * model-management.spec.ts - Model/engine switching tests
  * chat-flow.spec.ts - Complete chat flow tests
  * chat-ui.spec.ts - UI detection tests
  * chat-navigation.spec.ts - Navigation tests
  * onboarding-and-lm-studio.spec.ts - Onboarding automation
- Configure for hanzo-node backend (ports 3690-3692)
- Use zenlm/zen-nano Q4_K_M model (373MB) from HuggingFace
- Test across Linux, macOS, Windows
- Build hanzo-node from source per platform
- Run full E2E suite with Playwright

Tests verify:
- API connectivity
- Model loading
- Engine switching
- Chat messaging
- Performance
- Error handling
2025-11-12 10:18:48 -08:00

23 lines
457 B
TypeScript

import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
testDir: './e2e-tests',
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: 0,
workers: 1,
reporter: 'list',
timeout: 30000,
use: {
baseURL: 'http://localhost:1420',
trace: 'on-first-retry',
screenshot: 'only-on-failure',
},
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
],
});