diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cf86865..926389f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -86,6 +86,8 @@ jobs: - name: Run E2E tests run: pnpm --filter @groombook/e2e test + env: + PLAYWRIGHT_BASE_URL: http://host.docker.internal:8080 - name: Upload Playwright report if: failure() diff --git a/apps/e2e/playwright.config.ts b/apps/e2e/playwright.config.ts index e0970b4..20695f1 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",