Files
omni-tools/playwright.config.ts
Ibrahima G. Coulibaly b69d007c04 feat: playwright report
2024-06-28 19:51:31 +01:00

33 lines
668 B
TypeScript

import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
testDir: './src',
testMatch: /\.e2e\.(spec\.)?ts$/,
fullyParallel: true,
retries: 1,
reporter: [['html', { open: 'never' }]],
use: {
baseURL: 'http://localhost:4173',
trace: 'on-first-retry'
},
webServer: {
command: 'npm run build && npm run serve',
url: 'http://localhost:4173'
},
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] }
},
{
name: 'firefox',
use: { ...devices['Desktop Firefox'] }
},
{
name: 'webkit',
use: { ...devices['Desktop Safari'] }
}
]
});