mirror of
https://github.com/hanzoai/desktop.git
synced 2026-10-30 14:58:42 +00:00
- 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
23 lines
457 B
TypeScript
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'] },
|
|
},
|
|
],
|
|
});
|