I have a bunch of e2e Protractor tests (each one with its own before(), after(), Given(), When() and Then().
I've seen that before each single e2e test is executed, Protrator runs every Before() it sees, even the ones that doesn't belong to the test. Is that an expected behavior of Protractor?
It is caused by some naming clash in the Scenario strings?
This is not on Protractor, as it is on Cucumber.
And yes:
Before hooks will be run before the first step of each scenario.
https://github.com/cucumber/cucumber/wiki/Hooks
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.