Skip to content

Commit

Permalink
add e2e test tips to docs (#510)
Browse files Browse the repository at this point in the history
* add e2e test tips to docs

* fix docs
  • Loading branch information
cm-dyoshikawa authored Sep 26, 2023
1 parent 02e1576 commit 272acf0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ pnpm test

There are unit tests and end-to-end tests powered by Playwright in `e2e/` folder. If you are adding a new feature, you will be almost always asked to add a new e2e test. You can add it to one of the existing suites / test applications or create new one.

> **NOTE**
> When you want to debug by launching a browser in E2E testing, you can move to the `e2e/{ANY_FOLDER}` and use `pnpm run test-dev --headed`. You can also run a specific test only by using `test.only`.
>
> ```diff
> -test("a11y addon works", async ({ page }) => {
> +test.only("a11y addon works", async ({ page }) => {
> ```
## Documentation
If applicable, your changes should be also documented on [ladle.dev](https://ladle.dev/). The doc site can be started as:
Expand Down

0 comments on commit 272acf0

Please sign in to comment.