Files
tfm_ainventory/frontend/playwright.config.ts

32 lines
725 B
TypeScript

import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
testDir: './e2e/workflows',
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
workers: process.env.CI ? 1 : 5,
reporter: 'html',
timeout: 30000,
expect: { timeout: 5000 },
use: {
baseURL: 'http://localhost:8917',
trace: 'on-first-retry',
screenshot: 'only-on-failure',
},
webServer: {
command: 'NEXT_PUBLIC_API_URL=http://localhost:8916 npm run dev -- --port 8917',
url: 'http://localhost:8917',
reuseExistingServer: true,
timeout: 120000,
},
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
],
});