Setup Cypress for E2E testing
Is your enhancement related to a problem? Please describe. See overall concept in the OSBP guide and example setups on Simple Podcasting, Restricted Site Access, and https://github.com/10up/ElasticPress/pull/2446.
Describe the solution you'd like
- [ ] add base GitHub Action
- [ ] add .wp-env.json
- [ ] add base docker files
- [ ] update package.json / package lock files
- [ ] add cypress tests
- [ ] remove any WP Acceptance components
Designs
n/a
Describe alternatives you've considered
n/a
Additional context https://github.com/10up/cypress-wp-setup/ && https://github.com/10up/cypress-wp-utils will be helpful in getting this spun up and some initial test commands to leverage.
Hi @vikrampm1 and @jeffpaul,
I've created a new branch feature/setup-cypress-for-e2e-testing to start to move this one forward.
I've installed wp-env and Cypress and successfully run the example admin tests.
I've not added a base docker file, nor written any cypress tests (I'm not neither familiar with Cypress or this plugin). With some more context/direction I'd be happy to explore these, although I realise someone with more experience in docker and cypress may be more efficient.
@jamespstyles @barneyjeffries @iamdharmesh feel free to open a PR off that branch, seems like we're making good progress there to get things started for others to add tests to later
@jeffpaul and @vikrampm1 I have added test cases for plugin and it is working fine.
PR - https://github.com/10up/Ad-Refresh-Control/pull/148
Needs to do item
- [ ] add base GitHub Action
- [ ] add .wp-env.json
- [ ] add base docker files
- [ ] update package.json / package lock files