chore: Add some tests

This commit is contained in:
Jan K9f 2025-06-04 11:24:49 +02:00
commit 2bab5a7966
22 changed files with 578 additions and 2 deletions

View file

@ -0,0 +1,37 @@
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: 'http://localhost:4200',
trace: 'on-first-retry',
},
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
{
name: 'firefox',
use: { ...devices['Desktop Firefox'] },
},
{
name: 'webkit',
use: { ...devices['Desktop Safari'] },
},
],
webServer: {
command: 'bun run start',
url: 'http://localhost:4200',
reuseExistingServer: !process.env.CI,
},
});