Migrate project to TypeScript and Playwright scraping

This commit is contained in:
2026-08-05 13:47:45 +02:00
parent 8ecbc6655f
commit 639d9bec75
30 changed files with 3222 additions and 1625 deletions
+26
View File
@@ -0,0 +1,26 @@
import { defineConfig, devices } from "playwright/test";
export default defineConfig({
testDir: "./tests/ui",
timeout: 30_000,
expect: {
timeout: 5_000,
},
fullyParallel: true,
forbidOnly: Boolean(process.env.CI),
retries: process.env.CI ? 2 : 0,
reporter: [["list"], ["html", { open: "never" }]],
use: {
baseURL: "http://127.0.0.1:3404",
trace: "retain-on-failure",
screenshot: "only-on-failure",
video: "retain-on-failure",
...devices["Desktop Chrome"],
},
webServer: {
command: "tsx src/server.ts",
url: "http://127.0.0.1:3404/api/status",
reuseExistingServer: true,
timeout: 30_000,
},
});