From ff562118edb34a4f1b990cc28257f0e18cb26e83 Mon Sep 17 00:00:00 2001 From: Oliver Date: Tue, 12 Nov 2024 22:16:31 +1100 Subject: [PATCH] More playwright docs (#8471) --- docs/docs/develop/react-frontend.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/docs/develop/react-frontend.md b/docs/docs/develop/react-frontend.md index ab841e9008..72067b7a81 100644 --- a/docs/docs/develop/react-frontend.md +++ b/docs/docs/develop/react-frontend.md @@ -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 +```