2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-28 11:36:44 +00:00

More playwright docs (#8471)

This commit is contained in:
Oliver 2024-11-12 22:16:31 +11:00 committed by GitHub
parent 1eae56ff1e
commit ff562118ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -112,3 +112,13 @@ npx playwright test --ui
```
This will first launch the backend server (at `http://localhost:8000`), and then run the tests against the frontend server (at `http://localhost:5173`). An interactive browser window will open, and you can run the tests individually or as a group.
### Viewing Reports
The playwright tests are run automatically as part of the project's CI pipeline, and the results are stored as a downloadable report. The report file can be "replayed" using playwright, to view the results of the test run, as well as closely inspect any failed tests.
To view the report, you can use the following command, after downloading the report and extracting from the zipped file:
```bash
npx playwright show-report path/to/report
```