Browse Source

docs: add back missing cypress setup

pull/2559/head
Wing-Kam Wong 2 years ago
parent
commit
f74307e191
  1. 18
      packages/noco-docs/content/en/engineering/development-setup.md

18
packages/noco-docs/content/en/engineering/development-setup.md

@ -37,3 +37,21 @@ npm run dev
``` ```
Any changes made to frontend and backend will be automatically reflected in the browser. Any changes made to frontend and backend will be automatically reflected in the browser.
### Cypress
```shell
# install dependencies(cypress)
npm install
# run mysql database with required database using docker compose
docker-compose -f ./scripts/docker-compose-cypress.yml up
# Run backend api using following command
npm run start:api
# Run frontend web UI using following command
npm run start:web
# wait until both 3000 and 8080 ports are available
# and run cypress test using following command
npm run cypress:run
# or run following command to run it with GUI
npm run cypress:open
```
Loading…
Cancel
Save