Skip to content

Commit 5eafb27

Browse files
committed
fixup! feat(ui-tests): initialize playwright e2e test suite
1 parent c3fa3f5 commit 5eafb27

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ui/tests/e2e/playwright.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ export default defineConfig({
88
// NOTE: https://github.com/microsoft/playwright/issues/22592#issuecomment-1519991484
99
// BASE_URL should end with "/"
1010
// every test should us relative paths prepended with "./"
11-
baseURL: process.env.BASE_URL || "http://localhost:3000/",
11+
baseURL: process.env.BASE_URL || "http://127.0.0.1:3000/",
1212
trace: "retain-on-failure",
1313
video: "retain-on-failure",
1414
colorScheme: "dark", // assume dark by default
1515
},
1616
webServer: {
1717
command: "dev-ui-mock",
18-
url: "http://localhost:3000",
18+
url: "http://127.0.0.1:3000/",
1919
reuseExistingServer: !process.env.CI,
2020
stdout: "pipe",
2121
stderr: "pipe",

ui/tests/e2e/specs/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export const BASE_URL = process.env.BASE_URL || "http://localhost:3000";
1+
export const BASE_URL = process.env.BASE_URL || "http://127.0.0.1:3000";
22
const isProd = BASE_URL.includes("netlify.app") || BASE_URL.includes("github.io");
33

44
export const TEST_APP_NAME = process.env.TEST_APP_NAME || (isProd ? "python-web-app" : "mock-test-app");

0 commit comments

Comments
 (0)