- Fix E2E Playwright config: correct port 5173→9101, increase webServer timeout - Fix signup-bot and signup-human specs: add missing nsec backup step - Implement scoreCreativeAnswer() heuristic for creative round scoring - Pass DB ELO to generateMockBotResponse for non-MOCK_BOTS integration tests - Update challenges tests: all 16 types are now factual (no creative types) - Fix lifecycle test flakiness: widen ELO correlation tolerance, add timeout - All 11 E2E specs pass, 770 unit/integration tests pass Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
32 lines
622 B
TypeScript
32 lines
622 B
TypeScript
import { defineConfig, devices } from '@playwright/test'
|
|
|
|
export default defineConfig({
|
|
testDir: '.',
|
|
fullyParallel: true,
|
|
forbidOnly: !!process.env.CI,
|
|
retries: process.env.CI ? 2 : 0,
|
|
workers: process.env.CI ? 1 : undefined,
|
|
reporter: 'html',
|
|
timeout: 30_000,
|
|
|
|
use: {
|
|
baseURL: 'http://localhost:9101',
|
|
trace: 'on-first-retry',
|
|
},
|
|
|
|
projects: [
|
|
{
|
|
name: 'chromium',
|
|
use: { ...devices['Desktop Chrome'] },
|
|
},
|
|
],
|
|
|
|
webServer: {
|
|
command: 'pnpm dev',
|
|
url: 'http://localhost:9101',
|
|
reuseExistingServer: !process.env.CI,
|
|
timeout: 120_000,
|
|
cwd: '..',
|
|
},
|
|
})
|