mirror of
https://github.com/luxfi/dao.git
synced 2026-07-27 02:51:24 +00:00
29 lines
666 B
TypeScript
29 lines
666 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',
|
|
use: {
|
|
baseURL: process.env.BASE_URL || 'http://localhost:3002',
|
|
trace: 'on-first-retry',
|
|
screenshot: 'only-on-failure',
|
|
},
|
|
|
|
projects: [
|
|
{
|
|
name: 'chromium',
|
|
use: { ...devices['Desktop Chrome'] },
|
|
},
|
|
],
|
|
|
|
webServer: {
|
|
command: 'make up',
|
|
url: process.env.BASE_URL || 'http://localhost:3002',
|
|
reuseExistingServer: true,
|
|
timeout: 120 * 1000,
|
|
},
|
|
}); |