-
Notifications
You must be signed in to change notification settings - Fork 203
Cookies are emptied between requests. #271
Comments
Hi @brice I'm pretty sure I'm facing the same issue, did you find a solution ? Everytime the first request is working but then the others fail with that error : If I remove the first request then the 2nd one works...etc [EDIT] Ok it seems to come from the resetHeaders happening between each step. |
Did you achieve to resolve it? |
Not yet but still working on it. That's why I'm having this weird message : |
I'm running into the same issue. I'm trying to login in the first step and use cookies in the response in subsequent steps within the same scenario, but due to It looks like this was introduced in #163, but shouldn't that have happened between scenarios instead of after every request? Is it intentional that we should never be able to share cookies between steps in the same scenario? |
We are having the same issue. @vincentchalamon @sanpii any chance you might be able to help, as you both worked on #164 ? |
Hello to all,
Recently we upgraded behatch contexts from 2.5 version to 2.8.1 with several upgrade and i encounter a problem with my API's tests.
So basically i send a request to a page that connect an user then
Before the update this code use to work, after it the last context return this message :
Current response status code is 403, but 200 expected. (Behat\Mink\Exception\ExpectationException)
The function related to the context I am connected as user extends RawMinkContext and simply set a session ID in cookies.
During a debug session i saw that Cookies are emptied between sessions. So that explains the 403 response but why cookies are emptied? Did anyone encountered this after an update? Let me know if i have something to add.
I also write a question on StackOverflow
The text was updated successfully, but these errors were encountered: