The web application I am using has a static url which remains same for all the pages/modules inside it. Since testcafe closes the browser after each test execution, I have included all the selectors, fixtures and tests in a single big test which is not efficient.
My test is like this:
- Selector declaration
- Fixture 3.Test 3.1 *Steps to test Homepage 3.2 *Steps to test Page 2 3.3 *Steps to test page 3 and so on..
Now to execute the logic for third screen, either i need to have the browser remain opened from second screen logic or execute the logic for first, second screen etc as the url is same across the screens.
I want to move the selectors to a Page-model file and divide the logic for each screen into their own fixture/tests. But I am not sure how to do that from the options mentioned above?
Thanks.