Skip to content

Commit 1b4d970

Browse files
committed
docs(ui-tests): add minimal docs for testing
1 parent c2ab246 commit 1b4d970

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

  • docs/manuals/contributor/how_to
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# How to test
2+
3+
## How to test the UI
4+
5+
Run tests using [Playwright](https://playwright.dev/):
6+
7+
```bash
8+
dev-ui-mock
9+
10+
playwright test -c ui/tests/e2e
11+
playwright test -c ui/tests/e2e --project=chromium
12+
playwright test -c ui/tests/e2e --project=mobile
13+
```
14+
15+
```
16+
playwright test -c ui/tests/e2e --ui
17+
playwright test -c ui/tests/e2e --ui-host 127.0.0.1
18+
```
19+
20+
```
21+
env BASE_URL="https://ngi-nix.github.io/forge/" playwright test -c ui/tests/e2e --ui-host 127.0.0.1
22+
```
23+
24+
### Notes
25+
26+
- Use `data-testid` in Elm for stable selectors when writing tests.

0 commit comments

Comments
 (0)