Skip to content

Commit

Permalink
docs: update the eveloper doc for e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fbasso committed Jun 7, 2023
1 parent 439aa2a commit 5bb949c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion DEVELOPER.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,14 @@ Lints the source code and runs all unit tests for the library with coverage
#### `yarn e2e`

Runs all e2e tests for the library in production mode. We use them to check focus handling, browser styles, layout, etc.
(For debugging/development it is also possible to separately serve the e2e test application with `yarn e2e-app:serve` and run tests with `yarn ngb:e2e-noserve`)

e2e test are done with [Playwright](https://playwright.dev/).

You have several tips for debugging/development:

- Run `yarn e2e-app:serve` to run the e2e-app server and speed up the tests re-run,
- Run `yarn playwright test -c e2e-app --ui` to launch the [Playwright UI mode](https://playwright.dev/docs/test-ui-mode) and focus on one browser/test combination,
- For VSCode users, install the [Playwright extension](https://marketplace.visualstudio.com/items?itemName=ms-playwright.playwright) to run specific tests on one browser/test combination and be able to set breakpoints, inspect variables, ...

#### `yarn ssr`

Expand Down

0 comments on commit 5bb949c

Please sign in to comment.