From ef355911101967d4373ce15d6a53499bb4b74d86 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 11 Oct 2025 10:53:44 +1100 Subject: [PATCH] Update docs for running playwright tests (#10544) (#10546) (cherry picked from commit 0dbb0306a5f3d859778446d6f0aef9c9fb556c22) Co-authored-by: Oliver --- 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 61fea73ee7..858192aeaf 100644 --- a/docs/docs/develop/react-frontend.md +++ b/docs/docs/develop/react-frontend.md @@ -73,6 +73,16 @@ sudo npx playwright install-deps npx playwright install ``` +### Dataset + +The playwright tests assume that the [InvenTree test dataset](../demo.md#local-setup) is loaded into the InvenTree installation. This dataset provides a known set of data that the tests can run against. + +Before running the frontend tests, ensure that a clean copy of the test dataset is loaded into your InvenTree instance, by running the following command: + +```bash +invoke dev.setup-test -i +``` + ### Running Tests To run the tests locally, in an interactive editor, you can use the following command: