Skip to content

Commit

Permalink
update e2e test script command (#2655)
Browse files Browse the repository at this point in the history
  • Loading branch information
broccolinisoup authored Dec 6, 2022
1 parent e64cdc3 commit bb86c3f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions contributor-docs/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,17 +114,17 @@ available, check out the table below.

| Task | Command |
| :---------------------------------------------------- | :---------------------------------------------- |
| Run playwright tests | `scripts/test-e2e` |
| Run a specific test | `scripts/test-e2e TestName` |
| Run playwright tests | `script/test-e2e` |
| Run a specific test | `script/test-e2e TestName` |
| View the report from a test run | `npx playwright show-report .playwright/report` |
| Update snapshots | `scripts/test-e2e --update-snapshots` |
| Update snapshots | `script/test-e2e --update-snapshots` |
| Debug playwright tests | `npx playwright test --debug` |
| Run playwright with browser visible | `npx playwright test --headed` |
| Run playwright tests that match a specific tag | `scripts/test-e2e --grep @tag-name` |
| Run playwright tests that do not match a specific tag | `scripts/test-e2e --grep-invert @tag-name` |
| Run playwright tests that match a specific tag | `script/test-e2e --grep @tag-name` |
| Run playwright tests that do not match a specific tag | `script/test-e2e --grep-invert @tag-name` |

> **Note**
> The `scripts/test-e2e` file is a helper to run Playwright in an environment
> The `script/test-e2e` file is a helper to run Playwright in an environment
> that mirrors CI. You can optionally run these tests natively on your machine
> using `npx playwright test` if you would like to interact or debug tests.
> However, screenshots will not match and new ones will need to be generated on
Expand Down

0 comments on commit bb86c3f

Please sign in to comment.