feat: baseurl is added and grabbed from the env

This commit is contained in:
Palash gupta 2022-05-18 07:12:53 +05:30
parent b2fc4776b7
commit b8f8d59d40
No known key found for this signature in database
GPG Key ID: 8FD05AE6F9150AD6
2 changed files with 4 additions and 1 deletions

View File

@ -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"

View File

@ -1,4 +1,7 @@
import { PlaywrightTestConfig } from '@playwright/test';
import dotenv from 'dotenv';
dotenv.config();
const config: PlaywrightTestConfig = {
forbidOnly: !!process.env.CI,