5.1.0 breaks backwards compatibility with custom frameworks (calling afterEach
is now required) #4087
Description
Hi @sjelin!
It seems like as of this commit custom frameworks have to call runner.afterEach
after every test, even though the documentation states that this will be a requirement starting from Protractor 6.0.0.
We're adding support for this behaviour to Serenity/JS now to allow people to use Protractor 5.1.x, but I suppose the docs should be updated to clearly state that this is now a requirement?
To reproduce the problem, please install a custom framework, such as protractor-cucumber-framework
and try to run several test scenarios with restartBrowserBetweenTests
set to true
.
The browser does not get restarted.
Calling runner.afterEach()
after every test solves the issue.
(I see that you've requested support for this in protractor-cucumber-framework/protractor-cucumber-framework#67 by the way).
Best,
Jan