tests: Streamline hosted Playwright local setup

Streamline the process of setting up Playwright for local development of hosted service tests using dotenv. Add short guide to README as well.
This commit is contained in:
Tom Koscielniak 2025-03-26 15:27:30 +01:00 committed by Klara Simickova
parent 8136e0fb5b
commit 781267f16c
6 changed files with 41 additions and 5 deletions

6
playwright_example.env Normal file
View file

@ -0,0 +1,6 @@
PLAYWRIGHT_USER="" # Required
PLAYWRIGHT_PASSWORD="" # Required
BASE_URL="https://stage.foo.redhat.com:1337" # Required
CI="" # This is set to true for CI jobs, if checking for CI do !!process.env.CI
TOKEN="" # This is handled programmatically.
PROXY="" # Set this if running directly against stage (not using "yarn local")