omni-tools/playwright.config.ts

32 lines
625 B
TypeScript
Raw Normal View History

2024-06-26 08:59:18 +01:00
import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
testDir: './src',
testMatch: /\.e2e\.(spec\.)?ts$/,
fullyParallel: true,
retries: 1,
use: {
2024-06-28 16:44:18 +01:00
baseURL: 'http://localhost:4173',
2024-06-26 08:59:18 +01:00
trace: 'on-first-retry'
},
2024-06-28 16:25:24 +01:00
webServer: {
2024-06-28 16:34:11 +01:00
command: 'npm run build && npm run serve',
2024-06-28 16:25:24 +01:00
url: 'http://localhost:4173'
},
2024-06-26 08:59:18 +01:00
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] }
},
{
name: 'firefox',
use: { ...devices['Desktop Firefox'] }
},
{
name: 'webkit',
use: { ...devices['Desktop Safari'] }
}
]
});