diff --git a/docs/how-to-add-cypress-tests.md b/docs/how-to-add-cypress-tests.md index d4012c365c5..3f94fc089b8 100644 --- a/docs/how-to-add-cypress-tests.md +++ b/docs/how-to-add-cypress-tests.md @@ -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/ + ``` + + 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: