You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 20, 2021. It is now read-only.
I wanted to update from 2.7.1 to 3.0.1 today, and by doing so, I am facing fail in my test suite.
I have a suite of scenario that are doing GET/POST request and I check the responses status and responses body.
In 2.8.0, you introduce the resetHttpHeaders between requests which seems to be quite natural.
However, this methods cleans all the headers (except the HTTP_USER_AGENT which is hard setted by BrowserKit/Client), even the SCRIPT_FILENAME header added from the base_url option in the BrowserKitDriver of Mink.
My first request hit without problem and this scenario passes, but my next one fails as it does not have the header "SCRIPT_FILENAME" => "/app_test.php".
I tried to re-add the header before the request via the context: I add :name header equal to :value, but it forces the HTTP_ prefix, so I can not add the SCRIPT_FILENAME header anymore.
I may be missing something there, as I can not found a workaround on this except maybe split my scenarios into multiple features which I would like to avoid.