Skip to content

Commit

Permalink
Add pointers to playwright docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mccalluc committed Sep 26, 2024
1 parent bb4aca4 commit dc02d04
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,25 @@ dp-creator-ii
```
Your browser should open and connect you to the application.

### Testing

Tests should pass, and code coverage should be complete (except blocks we explicitly ignore):
```
coverage run -m pytest -v
coverage report
```

We're using [Playwright](https://playwright.dev/python/) for end-to-end tests. You can use it to [generate test code](https://playwright.dev/python/docs/codegen-intro) just by interacting with the app in a browser:
```
dp-creator-ii&
playwright codegen http://127.0.0.1:8000/
```

You can also [step through these tests](https://playwright.dev/python/docs/running-tests#debugging-tests) and see what the browser sees:
```
PWDEBUG=1 pytest
```

### Conventions

Branch names should be of the form `NNNN-short-description`, where `NNNN` is the issue number being addressed.
Expand Down

0 comments on commit dc02d04

Please sign in to comment.