From b8f8d59d40cc9edf6d015e589d3c276a00d8dec6 Mon Sep 17 00:00:00 2001 From: Palash gupta Date: Wed, 18 May 2022 07:12:53 +0530 Subject: [PATCH] feat: baseurl is added and grabbed from the env --- frontend/package.json | 2 +- frontend/playwright.config.ts | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/package.json b/frontend/package.json index 49fa763d5d..e6f485fda7 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -15,7 +15,7 @@ "postinstall": "yarn husky:configure", "husky:configure": "cd .. && husky install frontend/.husky", "playwright": "playwright test --config=./playwright.config.ts", - "playwright:local:debug": "PWDEBUG=console yarn playwright" + "playwright:local:debug": "PWDEBUG=console yarn playwright --headed --browser=chromium" }, "engines": { "node": ">=12.13.0" diff --git a/frontend/playwright.config.ts b/frontend/playwright.config.ts index 9747285a66..3fc61908c7 100644 --- a/frontend/playwright.config.ts +++ b/frontend/playwright.config.ts @@ -1,4 +1,7 @@ import { PlaywrightTestConfig } from '@playwright/test'; +import dotenv from 'dotenv'; + +dotenv.config(); const config: PlaywrightTestConfig = { forbidOnly: !!process.env.CI,