Skip to content

Commit

Permalink
[tests-only] override lint rules for tests/e2e (#10562) (#10577)
Browse files Browse the repository at this point in the history
* tests(e2e): use separate eslint config for tests

* tests(e2e): fix step args

* docs: add e2e lint section
  • Loading branch information
saw-jan committed Mar 11, 2024
1 parent 44a8589 commit da4841a
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion testing/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ To run a particular test, simply add the feature file and line number to the tes

Various options are available via ENV variables, e.g.

- `BASIC_AUTH=true` use basic authorization for api requests.
- `BASIC_AUTH=true` use basic authorization for api requests.
- `RETRY=n` to retry failures `n` times
- `SLOW_MO=n` to slow the execution time by `n` milliseconds
- `TIMEOUT=n` to set tests to timeout after `n` milliseconds
Expand All @@ -99,6 +99,22 @@ To then open e.g. the tracing from the `REPORT_DIR`, run
$ npx playwright show-trace path/to/file.zip
```

#### Lint E2E Test Code

Run the following command to find out the lint issues early in the test codes:

```shell
$ pnpm lint
```

And to fix the lint problems run the following command:

```shell
$ pnpm lint --fix
```

If the lint problems are not fixed by `--fix` option, we have to manually fix the code.

### Acceptance Tests (Nightwatch)

{{< hint info >}}
Expand Down

0 comments on commit da4841a

Please sign in to comment.