Spaces:
Running
Running
File size: 631 Bytes
6c3af4e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | import { defineConfig, devices } from "@playwright/test";
// ponytail: CI starts docker-compose.production.yml on :7860 (see reusable-check-docker.yml)
const baseURL = process.env.PLAYWRIGHT_BASE_URL ?? "http://127.0.0.1:7860";
export default defineConfig({
testDir: "./e2e",
timeout: 90_000,
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 1 : 0,
reporter: process.env.CI ? "list" : "html",
use: {
baseURL,
trace: "on-first-retry",
screenshot: "only-on-failure",
},
projects: [
{
name: "chromium",
use: { ...devices["Desktop Chrome"] },
},
],
});
|