phpunit-mink
phpunit-mink copied to clipboard
Configurable session termination
Currently, the created session is terminated using the stop method which closes the browser completely and reopens it when the next session is created.
This takes a lot of time. If there is no need for such restriction (session creation for each test/test case), then we need to be able to use the reset method, which would only clear browser cookies.
Then we also need to visit the base URL (no matter what) on each session creation to ensure that any visual state of the last visited page is reset as well (e.g. checkbox sticky state for example, where page reload doesn't uncheck checkboxes).
The draft name for this functionality is soft isolated session strategy.