diff --git a/package.json b/package.json index 10ed4d887..1db7126f1 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "dev-e2e": "tsx -r dotenv/config server/src/index.ts --dev dotenv_config_path=.env.e2e", "read-e2e-sms": "tsx scripts/twilio/getLastMessages.ts", "test-e2e": "playwright test", - "test-e2e-ui": "UI=true playwright test --ui" + "test-e2e-ui": "playwright test --ui" }, "workspaces": { "packages": [ diff --git a/playwright.config.ts b/playwright.config.ts index 0c87a008e..c9e5622d9 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -69,13 +69,11 @@ export default defineConfig({ }, ], - ...(!env.UI && { - webServer: { - command: "yarn dev-e2e", - url: env.BANKING_URL, - reuseExistingServer: false, - stderr: "pipe", - stdout: "ignore", - }, - }), + webServer: { + command: "yarn dev-e2e", + url: env.BANKING_URL, + reuseExistingServer: !env.CI, + stderr: "pipe", + stdout: "ignore", + }, }); diff --git a/tests/utils/env.ts b/tests/utils/env.ts index b8c61578e..fe4134ffc 100644 --- a/tests/utils/env.ts +++ b/tests/utils/env.ts @@ -17,11 +17,9 @@ export const env = validate({ env: { ...process.env, CI: String(process.env.CI === "true"), - UI: String(process.env.UI === "true"), }, validators: { CI: boolean, - UI: boolean, PARTNER_ADMIN_API_URL: url,