From aada595d60a730498867953b121c82fa49ff2030 Mon Sep 17 00:00:00 2001 From: Carl Date: Mon, 24 Oct 2022 06:40:14 +0100 Subject: [PATCH] Additional info for running individual tests (#13274) --- tests/Umbraco.Tests.AcceptanceTest/README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/Umbraco.Tests.AcceptanceTest/README.md b/tests/Umbraco.Tests.AcceptanceTest/README.md index 453bc69020..66586cd0cc 100644 --- a/tests/Umbraco.Tests.AcceptanceTest/README.md +++ b/tests/Umbraco.Tests.AcceptanceTest/README.md @@ -22,6 +22,16 @@ There are two npm scripts that can be used to execute the test: In case of errors it is recommended to use `await page.pause()` so you can step through your test. +### Executing single tests + +If you wish to run a single test, which may be helpful when writing tests you can use the following command. As before, you need to run these tests in the 'tests/Umbraco.Tests.AcceptanceTest' folder. + + npx playwright test + +For example to run the Login Test, + + npx playwright test tests/DefaultConfig/Login/Login.spec.ts + ### Environment Configuration The environment configuration is begin setup by the npm installation script. @@ -35,3 +45,7 @@ UMBRACO_USER_PASSWORD=password for superadmin URL=https://localhost:44331 ``` You can change this if you like or run the config script to reset the values, type "npm run config" in your terminal. + +### Documentation + +For further documentation on Playwright, see the [Playwright documentation](https://playwright.dev/docs/intro). \ No newline at end of file