fe014b8fc1
CI / Lint & Typecheck (pull_request) Successful in 24s
CI / Test (pull_request) Successful in 26s
CI / Build (pull_request) Successful in 24s
CI / E2E Tests (pull_request) Successful in 1m41s
CI / Build & Push Docker Images (pull_request) Failing after 11s
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
- playwright.config.ts: make baseURL configurable via PLAYWRIGHT_BASE_URL env var - ci.yml: set PLAYWRIGHT_BASE_URL=http://host.docker.internal:8080 in e2e job step Note: gitea.token registry auth not applicable — this repo uses GitHub Actions with ghcr.io and secrets.GITHUB_TOKEN (already correct). 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"] },
|
|
},
|
|
],
|
|
});
|