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
e2e testing #1014
e2e testing #1014
Conversation
7-3 nightly failed because I reran it with SSH to toy with how to add e2e testing to circleci. |
@eri-trabiccolo I'd like you to have a look at this mostly to see if the environment setup is clear. I'm not sure if you've actually installed Docker locally (there's quite a bit of setup steps to get the workflow running) but in the near future we'll be running a lot of e2e tests in add-ons. Docker isn't required for any of these tests as you could actually point the e2e tests towards any wp environment (even a live site in the cloud) with some environment variables. So as an example tests could be run against a local site "hosted" by vagrant/vbox. However I'd like to see if you can follow along and get this basic workflow running and let me know if you have any feedback on the process. Ideally if Docker and Node are both already installed it should just be a few command and minutes (mostly spent waiting for installation and compilation) to get the local environment running. This isn't high priority! |
@thomasplevy
where the passed test is:
hints, resources, love? |
@eri-trabiccolo I changed the package from my personal npm to the lifterlms org so it's now |
@thomasplevy
but I guess you were more interested on whether I could run e2e tests right!? |
yes.... these still need more work as I learn how puppeteer really works. I'm not sure why these are timing out for you though... Enough for now we'll keep digging into it |
I'm not sure either, I just lunched the tests again and they passed. |
hey look at that programmer magic <3 |
Description
Adds e2e testing & a utility library to facilitate e2e testing in add-ons
Review the readme in the e2e testing directory.
Reorganizes the existing tests directory, moving php tests into there own directory to keep things organized between the different types of tests.
Types of changes
This does not introduce any code that will affect the end user, this only improves internal dev testing.
Checklist: