You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
If we want a shared beforeEach function to run on all test specs of our test suite, we just need to create a file with a beforeEach function and make it execute at the beginning of the suite and "voilá".. we now have a shared beforeEach function. (This is also valid for afterEach function)
But... When we start running our tests with shardTestFiles:true this doesn't work, because each instance runs specific test-specs and we cannot guarantee that the file with the beforeEach function will run before each test-spec. Anyone knows a way to make it work?
A good way to make it work is having two more configurations on the "protractor.conf.js" file named: afterEach and beforeEach. Similar to what we have now for onPrepare. What do you guys think?