Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to run qa env #57

Closed
prajyot7 opened this issue Jan 5, 2024 · 18 comments
Closed

unable to run qa env #57

prajyot7 opened this issue Jan 5, 2024 · 18 comments

Comments

@prajyot7
Copy link

prajyot7 commented Jan 5, 2024

image

@akshayp7
Copy link
Owner

akshayp7 commented Jan 8, 2024

Hi @prajyot7 . I will have a look into this issue. Are you running this as it is or have you modified something?

@prajyot7
Copy link
Author

prajyot7 commented Jan 8, 2024

Hi @akshayp7
I direct run your code as given instructions in read me file without making any modifications

@akshayp7
Copy link
Owner

akshayp7 commented Jan 8, 2024

Hi , Please take the latest version of my project . I tried on my machine it is working correctly. I have attached the screenshot
PlaywrightTest

@kwiatek91
Copy link

kwiatek91 commented Jan 10, 2024

Hi , Please take the latest version of my project . I tried on my machine it is working correctly. I have attached the screenshot PlaywrightTest

i have same issue, just started with playwright and i found your freamwork looks pretty solid but also cant start
(working on macos, current branch of your project master)

image

same thing with old version 1.4

image

@akshayp7
Copy link
Owner

@kwiatek91 : I just checked in my windows Machine I was able to launch it. Please try command
npm run test --ENV="qa"

@akshayp7
Copy link
Owner

Can you also please check if other commands are working for you because the above command will run entire tests..

@kwiatek91
Copy link

kwiatek91 commented Jan 11, 2024

npm run test --ENV="qa"

same thing
image
also other commands:

image

@prajyot7 did you found any solution are you working on Windows/Linux/Mac?

@akshayp7
Copy link
Owner

@prajyot7 : I have checked on Windows os. It's working on Ubuntu Linux as well I had checked. Mac I didn't get opportunity to check

@kwiatek91
Copy link

@prajyot7 : I have checked on Windows os. It's working on Ubuntu Linux as well I had checked. Mac I didn't get opportunity to check

so this looks like system problem (project setup) on macos (other project works good, but maybe there is some problem in configuration to be honest i don't have enaught knowledge right now from TS / Playwright to find what cause the problem, but definitely it is a problem with parametrization)

@akshayp7
Copy link
Owner

akshayp7 commented Jan 12, 2024

@prajyot7 , @kwiatek91 : For MAC i think cross-env library works fine. I had added this in my project earlier but then later i removed cross-env package and tried using internal ENV provided by ts. You can check out my earlier releasewhere I have used cross-env Checkout my 1.2.0 release.

https://github.com/akshayp7/playwright-typescript-playwright-test/releases/tag/v1.2.0

@akshayp7
Copy link
Owner

Did you get a change to use cross-env . Did issue get resolved

@akshayp7
Copy link
Owner

Any updates on the issue @prajyot7 @kwiatek91 ?

@Akhilesh7057
Copy link

Same issue I'm facing on Mac

@akshayp7
Copy link
Owner

akshayp7 commented Mar 1, 2024

@Akhilesh7057 : please try cross-env library it's with 1.2.0 release and let me know if it works. Or I had same issue while creating docker container so I defines environment variable in file itself. You can take abloom at the docker file and docker run command.

@yashlohakare-certa
Copy link

Solution for MAC-users : Before running the test execution command please run the below command
export npm_config_ENV="qa"
It works fine

@akshayp7
Copy link
Owner

akshayp7 commented Mar 2, 2024

@yashlohakare-certa thank you for your help and support. Can anyone else confirm that this solution is working for you.

@akshayp7
Copy link
Owner

Closing this issue as solve. Please reopen if you face the same even after using export npm_config_ENV="qa" command

@akshayp7
Copy link
Owner

akshayp7 commented Mar 15, 2024

Hi Guys. If you are using VS code please try the below suggestion on your MAC machines
microsoft/playwright#29950

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants