Files
low-code-react-app-b/playwright.config.ts
johndoe6345789 548d565272 Generated by Spark: 2m 2s
Run npm run test:e2e

> spark-template@0.0.0 test:e2e
> playwright test

Error: Timed out waiting 120000ms from config.webServer.

Error: Process completed with exit code 1. - also probably worth putting a time limit on each e2e test
2026-01-17 13:25:54 +00:00

38 lines
779 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: 'html',
timeout: 60000,
expect: {
timeout: 15000,
},
use: {
baseURL: 'http://localhost:5173',
trace: 'on-first-retry',
screenshot: 'only-on-failure',
actionTimeout: 15000,
navigationTimeout: 30000,
},
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
],
webServer: {
command: 'npm run dev',
url: 'http://localhost:5173',
reuseExistingServer: !process.env.CI,
timeout: 180000,
stdout: 'pipe',
stderr: 'pipe',
},
})