82f1e3856f
CI / Test (pull_request) Successful in 28s
CI / Lint & Typecheck (pull_request) Successful in 31s
CI / E2E Tests (pull_request) Successful in 1m32s
CI / Build (pull_request) Successful in 2m32s
CI / Build & Push Docker Images (pull_request) Successful in 35s
CI / Update Infra Image Tags (pull_request) Has been skipped
CI / Web E2E (Dev) (pull_request) Has been cancelled
CI / Deploy PR to groombook-dev (pull_request) Has been cancelled
The Playwright config hardcoded localhost:8080 as baseURL, ignoring the PLAYWRIGHT_BASE_URL env var set in CI. Docker Compose was also missing extra_hosts to resolve host.docker.internal on Gitea Actions runners (which use DIND). Fixes GRO-1496. Co-Authored-By: Paperclip <noreply@paperclip.ing>
35 lines
839 B
TypeScript
35 lines
839 B
TypeScript
import { defineConfig, devices } from "@playwright/test";
|
|
|
|
/**
|
|
* Playwright configuration for Groom Book E2E tests.
|
|
*
|
|
* Targets the Docker Compose stack:
|
|
* - Web: http://localhost:8080
|
|
* - API: http://localhost:3000 (proxied via the web container's nginx)
|
|
*
|
|
* Run locally:
|
|
* docker compose up -d
|
|
* pnpm --filter @groombook/e2e test
|
|
*/
|
|
export default defineConfig({
|
|
testDir: "./tests",
|
|
timeout: 30_000,
|
|
retries: process.env.CI ? 2 : 0,
|
|
workers: process.env.CI ? 1 : undefined,
|
|
reporter: process.env.CI ? "github" : "list",
|
|
|
|
use: {
|
|
baseURL: process.env.PLAYWRIGHT_BASE_URL ?? "http://localhost:8080",
|
|
trace: "on-first-retry",
|
|
screenshot: "only-on-failure",
|
|
serviceWorkers: "block",
|
|
},
|
|
|
|
projects: [
|
|
{
|
|
name: "chromium",
|
|
use: { ...devices["Desktop Chrome"] },
|
|
},
|
|
],
|
|
});
|