import { defineConfig, devices } from '@playwright/test'; // End-to-end controls — the usage tests of the binôme, automated once agreed. // The server is the real Rust binary on a throwaway database (e2e/serve.sh), // with the dev login; build it first: `cargo build -p ld-server` and `npm run build`. export default defineConfig({ testDir: 'e2e', fullyParallel: false, workers: 1, reporter: [['list']], use: { baseURL: 'http://127.0.0.1:8092', trace: 'retain-on-failure' }, webServer: { command: 'sh e2e/serve.sh', url: 'http://127.0.0.1:8092/api/health', reuseExistingServer: false, timeout: 60_000, }, projects: [ { name: 'desktop', use: { ...devices['Desktop Chrome'], viewport: { width: 1360, height: 900 }, locale: 'fr-FR' }, testIgnore: /mobile\.spec\.ts/ }, { name: 'mobile', use: { ...devices['Pixel 7'], locale: 'fr-FR' }, testMatch: /mobile\.spec\.ts/ }, ], });