Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

v1.3.0 #52

Jul 11, 2023 · 2 comments · 2 replies
Discussion options

Dedicated to J. Robert Oppenheimer : American Theoretical Nuclear physicist

Changelog:

  1. Updated to Playwright 1.35.1
  2. Changed the way of reading environment variables instead of using cross-env library, now we are using "process.env" variable. Please refer Readme section for more info

This discussion was created from the release v1.3.0.
You must be logged in to vote

Replies: 2 comments · 2 replies

Comment options

Hey, I am currently trying to run the new version on local env and I'm having a problem with process.env, no matter how I try to use it from CMD it says "Please provide a correct env value like....". Is something missing from README? I see that gitignore has a .env file excluded, could you please take a look into this when you have some time? I've checked 1.2.0 version and it works just fine.

You must be logged in to vote
2 replies
@HamzaMiz
Comment options

Hello , Same as you @Zarielos i was gonna open a question and i found your comment , i tried this. npx playwright test Login.test.ts --project=Chrome --ui --ENV="qa" i got Please provide a correct environment value like "npx cross-env ENV=qa|dev|qaApi|devApi" , and please whats the use of ENV ? , thanks for your effort

@akshayp7
Comment options

akshayp7 Dec 4, 2023
Maintainer Author

Thanks for your patience ENV is used for Environment variable . For e.g if you have to run the tests on QA environment you can set the environment url in "testConfig.ts" file similarly for dev also you can set variable as dev and give url in testconfig file. While running if you can choose between dev and qa url in command line using ENV

Comment options

akshayp7
Dec 4, 2023
Maintainer Author

Previously I was using external library for env variables . Now I have removed the library and using proccess.env

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.