test: add Playwright UI smoke coverage

This commit is contained in:
2026-11-09 08:17:28 +00:00
parent b7ebf90c96
commit 3fdab5902a
6 changed files with 117 additions and 1 deletions
+21
View File
@@ -0,0 +1,21 @@
import { defineConfig, devices } from '@playwright/test'
export default defineConfig({
testDir: './tests',
fullyParallel: true,
retries: process.env.CI ? 2 : 0,
reporter: 'html',
use: {
baseURL: 'http://127.0.0.1:5173',
trace: 'on-first-retry',
screenshot: 'only-on-failure',
video: 'retain-on-failure',
},
projects: [{ name: 'chromium', use: { ...devices['Desktop Chrome'] } }],
webServer: {
command: 'npm run dev -- --host 127.0.0.1',
url: 'http://127.0.0.1:5173',
reuseExistingServer: !process.env.CI,
timeout: 30_000,
},
})