Migrate project to TypeScript and Playwright scraping
This commit is contained in:
@@ -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,
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user