Files
metabuilder/e2e/playwright.dbal-daemon.config.ts
copilot-swe-agent[bot] df795327f8 Add missing E2E test scripts to frontends/nextjs/package.json
- Added test:unit script for unit tests
- Added test:e2e script referencing root Playwright config
- Added test:e2e:ui, test:e2e:headed, test:e2e:debug scripts
- Added test:e2e:report script
- Added test:e2e:dbal-daemon script for daemon-specific tests
- Fixed playwright.dbal-daemon.config.ts to use correct paths and health endpoint

This resolves the CI blocker where workflows running from frontends/nextjs
directory couldn't find these scripts.

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2026-01-08 14:40:53 +00:00

33 lines
851 B
TypeScript

import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
testDir: './dbal-daemon',
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
workers: process.env.CI ? 1 : undefined,
reporter: 'html',
use: {
baseURL: 'http://localhost:3000',
trace: 'on-first-retry',
screenshot: 'only-on-failure',
},
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
],
webServer: {
command: 'npm --prefix ../../frontends/nextjs run db:generate && npm --prefix ../../frontends/nextjs run dev',
url: 'http://localhost:3000/api/health',
reuseExistingServer: !process.env.CI,
timeout: 300 * 1000,
stdout: 'pipe',
stderr: 'pipe',
env: {
DATABASE_URL: 'file:../../prisma/prisma/dev.db',
},
},
});