2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-28 03:26:45 +00:00

Update react-frontend.md (#8520)

Add info on how to debug missing tests in playwright
This commit is contained in:
Oliver 2024-11-19 23:08:21 +11:00 committed by GitHub
parent e4a39692ff
commit 70f5fe8c97
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -122,3 +122,15 @@ To view the report, you can use the following command, after downloading the rep
```bash
npx playwright show-report path/to/report
```
### No Tests Found
If there is any problem in the testing launch sequence, the playwright UI will display the message "No Tests". In this case, an error has occured, likely launching the InvenTree server process (which runs in the background).
To debug this situation, and determine what error needs to be resolved, run the following command:
```bash
npx playwright test --debug
```
This will print out any errors to the console, allowing you to resolve issues before continuing. In all likelihood, your InvenTree installation needs to be updated, and simply running `invoke update` will allow you to continue.