alexej-strelzow / testcafe-cucumber-typescript

A complete Framework for End-to-End Testing
MIT License
23 stars 11 forks source link

Support for running each scenario in new window #6

Open iam-amanxz opened 3 years ago

iam-amanxz commented 3 years ago

This is a fix for issue #5

Moved the creation of dummy test file to capture the test controller and creation of tests from BeforeAll hooks to Before hook so that each scenario will now start in its own new browser window.

Also moved the cleanup (destroy TestController, delete dummy test file) functions from AfterAll hook to After hook to enable cleanup after each test scenario.