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() 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