From 82f1e3856f5a5f169f07e5030157d9fb2f5cc54f Mon Sep 17 00:00:00 2001 From: Flea Flicker Date: Thu, 21 May 2026 20:53:30 +0000 Subject: [PATCH 1/2] 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 -- 2.52.0 From fe5de5fec8e824c422b0662e7319b0b83700333a Mon Sep 17 00:00:00 2001 From: Flea Flicker Date: Thu, 21 May 2026 20:57:49 +0000 Subject: [PATCH 2/2] fix(ci): use localhost instead of host.docker.internal for Playwright host.docker.internal is a Docker Desktop feature unavailable on Gitea Actions ubuntu-latest runners. Linux runners can reach the Docker Compose service via localhost when using docker compose expose/published ports. Co-Authored-By: Paperclip --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 81b71fe..87a9a05 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -82,7 +82,7 @@ jobs: - name: Run E2E tests run: pnpm --filter @groombook/e2e test env: - PLAYWRIGHT_BASE_URL: http://host.docker.internal:8080 + PLAYWRIGHT_BASE_URL: http://localhost:8080 - name: Stop Docker Compose stack if: always() -- 2.52.0