From 008c4e2c4cfce1d1616db512f7045601b068174f Mon Sep 17 00:00:00 2001 From: Ansh Phirani Date: Fri, 6 Jan 2023 06:48:15 +0530 Subject: [PATCH] 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 * docs: update command for running a single cypress test Co-authored-by: Naomi Carrigan --- docs/how-to-add-cypress-tests.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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: