Added E2E test suite covering: - Homepage loading - Worker grid display - API endpoints (/api/workers, /api/events, /api/health, etc.) - WebSocket connectivity - Responsive design (mobile/tablet) API tests verified with curl (11/11 endpoints working). Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
26 lines
602 B
TypeScript
26 lines
602 B
TypeScript
import { defineConfig, devices } from '@playwright/test';
|
|
|
|
export default defineConfig({
|
|
testDir: './e2e',
|
|
fullyParallel: true,
|
|
forbidOnly: !!process.env.CI,
|
|
retries: process.env.CI ? 2 : 0,
|
|
workers: process.env.CI ? 1 : undefined,
|
|
reporter: 'list',
|
|
use: {
|
|
baseURL: 'http://localhost:3000',
|
|
trace: 'on-first-retry',
|
|
},
|
|
projects: [
|
|
{
|
|
name: 'chromium',
|
|
use: { ...devices['Desktop Chrome'] },
|
|
},
|
|
],
|
|
webServer: {
|
|
command: 'node dist/cli.js web --port 3000',
|
|
url: 'http://localhost:3000',
|
|
reuseExistingServer: true,
|
|
timeout: 10000,
|
|
},
|
|
});
|