-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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 vscode plugin run not default playwright command #34311
Comments
I would love to have this feature as well!! |
Can the setup code run as part of |
Thanks for the response, @yury-s! Unfortunately, it worked well until we understood it would not work with the playwright vscode plugin. It may be a very uncommon use case, and we should not use the CLI like this, although it helps with our developer experience, quick setup, backward compatibility, etc. Part of our goal in this migration was to improve the developer experience. This is why we want the plugin to work, and we want to know if it's possible to customize the commands it executes or if it's something that is not supported. ( BTW, it might be nice also for users that have different scripts that execute the playwright command with other flags ) |
I see in the implementation that it searches for the CLI command and executes it. |
Can you tell us a bit more about what the wrapper script does before calling We don't support custom playwright command in VSCode extension, but there are multiple ways to extend playwright itself where you can call the code that initializes the environment (you'll need extract it into a separate script or something, so that it does not call
|
🚀 Feature Request
Hi, I would like to know if there is a way to update the playwright vscode plugin so that it can execute different commands when running the tests.
We have a script to run Playwright, which initializes different environmental stuff conditionally before running the Playwright command, and then we use it in our Playwright configuration.
So, when using the plugin, it does not execute our command, which causes problems with our tests.
So i wonder if we could define which command to run when executing the tests.
Example
"scripts": {
"test:e2e": "node ./setup-env.js && npx playwright test"
}
in vscode playwright plugin config
"test-command": "test:e2e"
Motivation
This would help us to define custom scripts and executions for our tests in our organization. Everything works fine executing the tests with the regular playwright commands, but the vscode extension is not working that way.
The text was updated successfully, but these errors were encountered: