We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2ab246 commit 1b4d970Copy full SHA for 1b4d970
1 file changed
docs/manuals/contributor/how_to/test.md
@@ -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