Skip to content
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

Update some node packages #3706

Merged
merged 14 commits into from
Oct 19, 2023
Prev Previous commit
Next Next commit
DB Soft reset
  • Loading branch information
felipeelia committed Oct 19, 2023
commit f220b8c924be319913832b1a30913967cb9a3d30
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"env:install-tests-cli": "./bin/install-wp-cli.sh tests-wordpress",
"env:start": "wp-env start && npm run env:install-tests-cli && cd bin/es-docker/ && docker-compose up -d",
"env:stop": "wp-env stop && cd bin/es-docker/ && docker-compose down",
"env:reset": "wp-env clean all && npm run env:start && npm run cypress:setup",
"cypress:setup": "./bin/setup-cypress-env.sh",
"cypress:open": "cypress open --config-file tests/cypress/config.js",
"cypress:run": "cypress run --config-file tests/cypress/config.js"
Expand Down
7 changes: 6 additions & 1 deletion tests/cypress/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ ElasticPress e2e tests use [Cypress](https://www.cypress.io/), [wp-env](https://
* Initial database setup: `npm run cypress:setup`
* Open Cypress: `npm run cypress:open`

### Reset
### Soft Reset

* Clean the database and redo initial setup: `npm run env:reset`
* Open Cypress: `npm run cypress:open`

### Hard Reset

* Destroy the WP env: `npm run env destroy`
* Restart WP env and redo initial setup: `npm run env:start && npm run cypress:setup`
Expand Down