Closed jimsynz closed 8 years ago
So, are you saying it works correctly if you define the before hook, and it doesn't work if you don't define the before hook?
Do you have any JavaScript on these pages that change the behavior?
Closing as I've never heard back. I assume if this was a problem for more we would have more activity on this issue.
I have been setting up a client's project to do their features with Capybara (they're an existing minitest user).
Everything seemed to go smoothly, except that the session wasn't being reset between scenarios.
My feature file looked like:
I was able to verify that
Capybara.reset_sessions!
was being called by theafter
hook, however it didn't come right until I addedto my tests.
Now it works. Am I doing it wrong?