From 5ef0751da1a3c74b06f21be0dadbb2238f1cc051 Mon Sep 17 00:00:00 2001 From: Nick Gerleman Date: Thu, 4 Mar 2021 14:46:29 -0800 Subject: [PATCH] Fix documentation for running a single E2ETest Test (#7273) Fixes #7266 Fixes #7240 This documents how you can run a single test from E2ETest, with restriction. Fixing the restriction is tracked by https://github.com/microsoft/react-native-windows/issues/7272 --- docs/e2e-testing.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/e2e-testing.md b/docs/e2e-testing.md index 4d02b4d911..5d2da10b12 100644 --- a/docs/e2e-testing.md +++ b/docs/e2e-testing.md @@ -35,9 +35,16 @@ module.exports = { > C:\repo\react-native-windows\packages\e2e-test-app> `yarn e2etest` +or + +> C:\repo\react-native-windows\packages\e2e-test-app\test> `yarn e2etest` + + **Running a specific test** -> C:\repo\react-native-windows\packages\e2e-test-app> `yarn e2etest -t visitAllPages` +> C:\repo\react-native-windows\packages\e2e-test-app\test> `yarn e2etest .\visitAllPages.test.ts` + +⚠ This command will only work from the `test` directory ([#7272](https://github.com/microsoft/react-native-windows/issues/7272)) ## Debugging E2E Tests in CI ### Increasing verbosity