From a5aeead6fbe80a6e9c7a2c4ec1a00e26ce553488 Mon Sep 17 00:00:00 2001 From: Trezy Date: Thu, 18 Jun 2026 15:01:43 -0500 Subject: [PATCH] test: fix test URLs to support loopback mode Signed-off-by: Trezy Signed-off-by: Trezy --- docker-compose.e2e.yml | 2 +- web/playwright.config.ts | 2 +- web/tests/e2e/global-setup.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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") -- 2.51.2