feat: add playwright configuration

This commit is contained in:
2026-04-19 07:50:22 +03:00
parent 1692b9f360
commit ba33e1804e

View File

@@ -0,0 +1,24 @@
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',
trace: 'on-first-retry',
screenshot: 'only-on-failure',
},
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
],
});