Skip to content

Commit 183a369

Browse files
committed
docs: add testing section
1 parent f17beee commit 183a369

1 file changed

Lines changed: 24 additions & 1 deletion

File tree

README.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ python3 -m http.server 8000
2424

2525
Then visit [http://localhost:8000](http://localhost:8000)
2626

27-
### Local Testing
27+
### Local Data
2828

2929
To test with local benchmark data, symlink the `balatrobot/benchmarks` directory:
3030

@@ -33,3 +33,26 @@ ln -s ../balatrobot/benchmarks benchmarks
3333
```
3434

3535
Then in `config.js`, comment/uncomment to switch environment to `development`.
36+
37+
## Testing
38+
39+
The project includes end-to-end tests using Playwright. Make sure the local server is running before executing tests.
40+
41+
### Running Tests
42+
43+
```bash
44+
# Install dependencies (first time only)
45+
npm install
46+
47+
# Run tests headless (default)
48+
npm test
49+
50+
# Run tests with interactive UI
51+
npx playwright test --ui
52+
53+
# Run tests with browser visible
54+
npm run test:headed
55+
56+
# Run tests in debug mode
57+
npm run test:debug
58+
```

0 commit comments

Comments
 (0)