akashop/volumes/wp/wp-content/plugins/templates-patterns-collection/e2e-tests/README.md

6 lines
700 B
Markdown
Raw Normal View History

2024-03-20 07:48:21 +00:00
### How to run cypress tests locally
* First you will need to setup the environment on your local machine and have wp-cli installed. Assuming that your local url is http://neve.test you can `CYPRESS_BASE_URL=http://neve.test bash bin/envs/local.sh` or if you want to install a specific environment you can use `CYPRESS_BASE_URL=http://neve.test bash bin/envs/local.sh amp` where amp is the environment inside `bin/envs/amp`
* Than you can move to e2e-tests folder and run `yarn install --frozen-lockfile` to install the dependencies.
* After this you will have to open cypress with the proper base url, as `CYPRESS_BASE_URL=http://neve.test npm run cypress:open` and run the spec that you want.