From 53ec112b50e4cfc14693532a5b80f27dad995567 Mon Sep 17 00:00:00 2001 From: Ashwin Kumar Sivakumar Date: Mon, 6 Jul 2026 22:03:06 +0530 Subject: [PATCH] chore: Configure Playwright for test111.nxtgauge.com testing - Add TEST_ENV environment variable support - Use production URL when TEST_ENV=production - Disable webServer when testing production --- playwright.config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playwright.config.ts b/playwright.config.ts index 8aaf598..7f78245 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -8,7 +8,7 @@ export default defineConfig({ workers: process.env.CI ? 4 : undefined, reporter: [["list"], ["html", { outputFolder: "./playwright-reports/html" }]], use: { - baseURL: "http://localhost:3000", + baseURL: process.env.TEST_ENV === 'production' ? "https://test111.nxtgauge.com" : "http://localhost:3000", trace: "on-first-retry", screenshot: "only-on-failure", video: "retain-on-failure", @@ -23,7 +23,7 @@ export default defineConfig({ use: { ...devices["Pixel 5"] }, }, ], - webServer: { + webServer: process.env.TEST_ENV === 'production' ? undefined : { command: "npm run build && node .output/server/index.mjs", url: "http://localhost:3000", reuseExistingServer: !process.env.CI,