These are chat archives for Behat/Behat

18th
Feb 2017
JD Williams
@jdwil
Feb 18 2017 15:37
I'm getting weird behavior from behat after extending it to support lexik jwt authentication.
@jdwil
I followed digitalkaoz's approach here: lexik/LexikJWTAuthenticationBundle#120. Have a couple scenarios that are getting 401 responses... but only when run with all features. If I run them on their own they work fine.
Tried resetting the session @beforeScenaio
JD Williams
@jdwil
Feb 18 2017 16:03
also using the symfony2, mink and behatch extensions
JD Williams
@jdwil
Feb 18 2017 16:28
this seems to work: Behatch/contexts#182. and you have to manually set the 'Authorization' header to null when you simulate logging out. I thought reset() was supposed to clear all the headers.