-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
[Feature] playwright init should support a non-interactive mode with arguments specified on the command line. #11843
Comments
And updates on this? |
I ran into this working on integrating Playwright with ddev. For tests, we need to commit a playwright skeleton as a fixture instead of initializing it from latest. I would have preferred to have the option to run |
Agree we need this |
This is already there, see:
We use it e.g. for the VSCode integration when creating projects: |
I could have sworn I looked for CLI parameters before, but this doesn't look to be a new feature... so 🤷 ? Thanks for the update. But I have a thought. Even with a parameter, you have to specify
I think I probably read @mxschmitt shall I file a new issue with details? |
I agree with @deviantintegral |
npm init playwright
runs an interactive program that initializes a playwright project.npm init
without interactivity.It would be nice if
npx create-playwright --lang TypeScript --dir tests --github --install-deps
to specify or override all the default options explicitly in the command line.npx create-playwright -y
or--yes
(which is the convention fornpm init
) to disable interactive prompting and accept all the defaultsThe text was updated successfully, but these errors were encountered: