Skip to content

Commit

Permalink
docs(testing): fix cypress headed/headless modes description (#9591)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajsaraujo committed Mar 31, 2022
1 parent 42f1c73 commit 84dbd43
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions docs/shared/cypress-plugin.md
Expand Up @@ -49,9 +49,7 @@ Replace `your-app-name` with the app's name as defined in your `workspace.json`

Simply run `nx e2e frontend-e2e` to execute e2e tests with Cypress.

By default, Cypress will run in “headed” mode (you will see the tests executing in a new browser window). You will have the result of all the tests and errors (if any) in your terminal.

Screenshots and videos will be accessible in `dist/apps/frontend/screenshots` and `dist/apps/frontend/videos`.
By default, Cypress will run in headless mode. You will have the result of all the tests and errors (if any) in your terminal. Screenshots and videos will be accessible in `dist/apps/frontend/screenshots` and `dist/apps/frontend/videos`.

### Watching for Changes

Expand All @@ -63,7 +61,7 @@ Cypress doesn't currently re-run your tests after changes are made to applicatio

### Using Cypress in the Headed Mode

Cypress runs in headless mode by default (the `headless` option is deprecated). In order to run the Cypress in Headed mode, you can set `browser` option to select the specific browser to be used or set `headed` option to run tests using the default browser.
You can run Cypress in headed mode to see your app being tested. To do this, pass in the `--watch` option. E.g: `nx frontend-e2e --watch`

### Testing Against Prod Build

Expand Down

1 comment on commit 84dbd43

@vercel
Copy link

@vercel vercel bot commented on 84dbd43 Mar 31, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.