oggui/ogWebconsole/playwright.config.ts

34 lines
870 B
TypeScript

import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
testDir: './e2e',
globalSetup: './e2e/global-setup.ts',
globalTeardown: './e2e/global-teardown.ts',
timeout: 30_000,
retries: 0,
workers: 1, // secuencial para no crear conflictos entre usuarios de test
reporter: [['list'], ['html', { outputFolder: 'playwright-report', open: 'never' }]],
use: {
baseURL: 'https://localhost:4200/oggui',
ignoreHTTPSErrors: true,
screenshot: 'only-on-failure',
video: 'retain-on-failure',
},
webServer: {
command: 'npm start',
url: 'https://localhost:4200/oggui',
reuseExistingServer: true,
ignoreHTTPSErrors: true,
timeout: 120_000,
},
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
],
});