From 82f1e3856f5a5f169f07e5030157d9fb2f5cc54f Mon Sep 17 00:00:00 2001 From: Flea Flicker Date: Thu, 21 May 2026 20:53:30 +0000 Subject: [PATCH] fix(e2e): respect PLAYWRIGHT_BASE_URL env var and add host.docker.internal resolution 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 --- apps/e2e/playwright.config.ts | 2 +- docker-compose.yml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/e2e/playwright.config.ts b/apps/e2e/playwright.config.ts index e0970b4..459e3e6 100644 --- a/apps/e2e/playwright.config.ts +++ b/apps/e2e/playwright.config.ts @@ -19,7 +19,7 @@ export default defineConfig({ reporter: process.env.CI ? "github" : "list", use: { - baseURL: "http://localhost:8080", + baseURL: process.env.PLAYWRIGHT_BASE_URL ?? "http://localhost:8080", trace: "on-first-retry", screenshot: "only-on-failure", serviceWorkers: "block", diff --git a/docker-compose.yml b/docker-compose.yml index 43ba637..756282d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -50,6 +50,8 @@ services: dockerfile: apps/web/Dockerfile ports: - "8080:80" + extra_hosts: + - "host.docker.internal:host-gateway" depends_on: - api