2025-01-14 16:11:01 +03:00
|
|
|
import { defineConfig, devices } from '@playwright/test';
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
testDir: 'tests',
|
|
|
|
forbidOnly: !!process.env.CI,
|
|
|
|
retries: process.env.CI ? 2 : 0,
|
2025-01-28 19:45:31 +03:00
|
|
|
reporter: 'list',
|
2025-01-14 16:11:01 +03:00
|
|
|
projects: [
|
|
|
|
{
|
|
|
|
name: 'Desktop Chrome',
|
|
|
|
use: { ...devices['Desktop Chrome'] }
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Desktop Firefox',
|
|
|
|
use: { ...devices['Desktop Firefox'] }
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Desktop Safari',
|
|
|
|
use: { ...devices['Desktop Safari'] }
|
|
|
|
}
|
|
|
|
],
|
|
|
|
use: {
|
|
|
|
baseURL: 'http://localhost:3000',
|
|
|
|
trace: 'on-first-retry'
|
|
|
|
},
|
|
|
|
webServer: {
|
|
|
|
command: 'npm run dev',
|
|
|
|
url: 'http://localhost:3000',
|
|
|
|
reuseExistingServer: !process.env.CI
|
|
|
|
}
|
|
|
|
});
|