This commit is contained in:
2026-05-17 23:34:58 +03:00
parent 9228d071ef
commit 6afd0070a6

View File

@@ -0,0 +1,24 @@
import { fileURLToPath } from 'url';
import path from 'path';
import { defineConfig, devices } from '@playwright/test';
const __dirname = path.dirname(fileURLToPath(import.meta.url));
export default defineConfig({
testDir: path.join(__dirname, 'tests'),
fullyParallel: false,
retries: 0,
workers: 1,
reporter: [['list']],
timeout: 60000,
expect: { timeout: 15000 },
use: {
baseURL: process.env.FRONTEND_URL || 'http://127.0.0.1:8102',
trace: 'retain-on-failure',
screenshot: 'only-on-failure',
video: 'retain-on-failure',
},
projects: [{
name: 'chromium',
use: { ...devices['Desktop Chrome'], viewport: { width: 1440, height: 900 } },
}],
globalSetup: undefined,
});