-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Running e2e tests on Windows without Docker #10459
Comments
I think you can do |
thanks for chiming in @youknowriad, but I when I run
I'm not sure what setup I need to do to make that work (sorry, I'm a node newb). But as I understand it, |
Actually, it's |
oh yeah |
Actually, there's an issue about docs for these commands... #8319 |
👍 ! |
Describe the bug
I am unable to run Gutenberg's end-to-end tests (using Jest and Puppeteer) successfully in a Windows-based dev environment called Laragon (similar to XAMPP). I have node and npm installed fine.
On https://wordpress.org/gutenberg/handbook/reference/testing-overview/#end-to-end-testing, I set the environment variables
WP_BASE_URl
,WP_ADMIN
andWP_PASSWORD
to those of a site hosted locally. Then when I runnpm run test-e2e
it runs for a bit, but then gives me the following error:I believe it's because
pretest-e2e
runsconcurrently \"./bin/reset-e2e-tests.sh\" \"npm run build\"
, where./bin/reset-e2e-tests.sh
is a bash file specifically designed for the Docker setup (see https://github.com/WordPress/gutenberg/blob/master/package.json#L183). It reports that Docker isn't setup and fails. It's right, but it should still work because I have a different setup.If I change that script to instead just be
npm run build
the tests run ok.To Reproduce
Steps to reproduce the behavior:
WP_BASE_URl
,WP_ADMIN
andWP_PASSWORD
in your command prompt, then runnpm run test-e2e
from within the gutenberg's base folder.Expected behavior
I would expect it to work to run the tests, without need any code modifications.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: