Skip to content

Commit

Permalink
docs(testing): improve cypress headless mode guide (#9264)
Browse files Browse the repository at this point in the history
  • Loading branch information
santoshyadavdev committed Mar 10, 2022
1 parent 37278fd commit 285ea82
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions docs/shared/cypress-plugin.md
Expand Up @@ -61,11 +61,9 @@ Running Cypress with `--watch` is a great way to enhance dev workflow - you can

Cypress doesn't currently re-run your tests after changes are made to application code when it runs in “headed” mode.

### Using Cypress in the Headless Mode
### Using Cypress in the Headed Mode

If you want to run the Cypress tests in headless mode (e.g., on CI), you can do so by passing `--headless`. You will see all the test results live in the terminal. Videos and screenshots will be available for debugging.

In headless mode your tests **will** be re-run every time you make a change to your application code.
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.

### Testing Against Prod Build

Expand Down

1 comment on commit 285ea82

@vercel
Copy link

@vercel vercel bot commented on 285ea82 Mar 10, 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.