the documentation (https://devexpress.github.io/testcafe/documentation/test-api/test-code-structure.html#test-hooks) states that:
"If test.before or test.after is specified, it overrides the corresponding fixture.beforeEach and fixture.afterEach hook, so that the latter are not executed."
This doesn't make logical sense. Shouldn't feature.beforeEach execute first?
My code uses the the feature.beforeEach hook to Maximise the browser. The website I'm working on has different DOM Elements depending on the page size - Mobile, Tablet, Desktop etc.
When TestCafe opens the browser it is always at a small size. If I want to work on desktop elements, I have to wait for the browser to be maximised first. I cannot use the test.before hooks because it will try to access elements that don't exist and fail straight away.
Suggestion: Can we make the feature.beforeEach hook to always execute first? This can be similar to the "Background" command in Cucumber that runs before each Scenario in a Feature?