Ad-Refresh-Control icon indicating copy to clipboard operation
Ad-Refresh-Control copied to clipboard

Setup Cypress for E2E testing

Open vikrampm1 opened this issue 3 years ago • 3 comments

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.

vikrampm1 avatar Apr 20 '22 12:04 vikrampm1

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 avatar Feb 28 '23 12:02 jamespstyles

@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 avatar Apr 27 '23 14:04 jeffpaul

@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

sudip-md avatar Jun 17 '24 10:06 sudip-md