diff --git a/docker-compose.e2e.yml b/docker-compose.e2e.yml index 90c60de..b52907c 100644 --- a/docker-compose.e2e.yml +++ b/docker-compose.e2e.yml @@ -53,7 +53,7 @@ services: dockerfile: Dockerfile environment: DATABASE_URL: postgres://happyview:happyview@postgres:5432/happyview_test - PUBLIC_URL: http://localhost:3200 + PUBLIC_URL: http://127.0.0.1:3200 HOST: 0.0.0.0 PORT: "3000" PLC_URL: http://plc:2582 diff --git a/web/playwright.config.ts b/web/playwright.config.ts index a25a835..dc8e4f2 100644 --- a/web/playwright.config.ts +++ b/web/playwright.config.ts @@ -8,7 +8,7 @@ export default defineConfig({ workers: 1, reporter: process.env.CI ? [["html"], ["github"]] : [["html"]], use: { - baseURL: process.env.PLAYWRIGHT_BASE_URL || "http://localhost:3200", + baseURL: process.env.PLAYWRIGHT_BASE_URL || "http://127.0.0.1:3200", trace: "on-first-retry", }, projects: [ diff --git a/web/tests/e2e/global-setup.ts b/web/tests/e2e/global-setup.ts index 7ac52bf..441e71b 100644 --- a/web/tests/e2e/global-setup.ts +++ b/web/tests/e2e/global-setup.ts @@ -13,7 +13,7 @@ async function waitForService(url: string, name: string, timeoutMs = 60000) { } async function globalSetup() { - const baseURL = process.env.PLAYWRIGHT_BASE_URL || "http://localhost:3200" + const baseURL = process.env.PLAYWRIGHT_BASE_URL || "http://127.0.0.1:3200" await waitForService(`${baseURL}/health`, "HappyView") await waitForService("http://localhost:2582/health", "PLC Directory")