mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-08 09:01:03 -08:00
22 lines
537 B
TypeScript
22 lines
537 B
TypeScript
import { defineConfig, devices } from '@playwright/test';
|
|
|
|
export default defineConfig({
|
|
testDir: './e2e',
|
|
timeout: 45000,
|
|
maxFailures: 2,
|
|
testMatch: /.*\.e2e\.ts/,
|
|
webServer: {
|
|
command: 'npm run serve',
|
|
port: 4200,
|
|
reuseExistingServer: !process.env.CI,
|
|
timeout: 120000,
|
|
},
|
|
use: {
|
|
...devices['Desktop Chrome'],
|
|
baseURL: 'http://localhost:4200',
|
|
headless: false,
|
|
screenshot: 'only-on-failure',
|
|
testIdAttribute: 'data-test-id',
|
|
},
|
|
});
|