Add `--reuse-browser` flag for component testing
When a test is doing a component test we should have a reuse-browser flag that is defaulted on to help speed up tests.
- [ ] Nightwatch can differentiate test types and run the test accordingly
- [ ] Add flag when we see a component test
- [ ] Add relevant documentation
Thank you for setting this as an enhancement. One of the product folk will triage this again to help see when we can fit this in an upcoming sprint.
Added reuse-browser flag to reuse session in Nightwatch which will be used in component testing.
Raised a PR #3398 for reusing browser sessions for different test modules.
Reusing browser sessions with parallel thread needs to handled differently. For the parallel case we need to spawn threads as per machine and reuse those for rest of the test runs. For example for 8 tests and 4 thread workers we need to spawn 4 threads and use those same threads for remaining test run.
Created another issue to track parallelism case #3403