0

A header (Authorizathion) I set in the one scenario still exists when second scenario is ran. I've looked through the documentation http://docs.behat.org/en/v3.0/ but I could find anything about my problem there. Why is that ?

Thor Samsberg
  • 2,219
  • 5
  • 22
  • 30

1 Answers1

0

Use @insulated feature tag, this will start a clean browser for each scenario.

If this is not the issue use a method in @BeforeScenario hook where you can call reset/restart session methods.

kenorb
  • 155,785
  • 88
  • 678
  • 743
lauda
  • 4,153
  • 2
  • 14
  • 28