docs: update command for running a single cypress test (#48932)

* Corrected documentation for running single Cypress test

* docs: update command for running a single cypress test

* Update docs/how-to-add-cypress-tests.md

Co-authored-by: Naomi Carrigan <nhcarrigan@gmail.com>

* docs: update command for running a single cypress test

Co-authored-by: Naomi Carrigan <nhcarrigan@gmail.com>
This commit is contained in:
Ansh Phirani
2023-01-06 06:48:15 +05:30
committed by GitHub
parent 69e032fc6c
commit 008c4e2c4c

View File

@@ -34,7 +34,13 @@ To run tests against production builds, replace `dev` with `prd` below.
- To run a single test:
```console
npm run cypress:dev:run -- --spec=cypress/pathToYourSpec/youSpecFileName.js
npm run cypress -- run --spec=cypress/<path_to_test_file>
```
For example:
```console
npm run cypress -- run --spec=cypress/e2e/default/landing.js
```
- To create a development build, start the development server, and run all existing cypress end-to-end tests: