How to disable reset session between scenarios in Behat Mink?

1.2k Views Asked by At

-- edit --

We have in the company website for statistics from Facebook. Login to statistics page is using Facebook account. I have written BDD tests. Tests log into the site and test their functionality. But Facebook does not allow frequent logging (probably for safety reasons). So when they log in each scenario, it will be blocked from Facebook.

The tests are run several times a day. Facebook account is only for login to website with statistics.

I want to ask. Is it possible to disable reset session between scenarios? Or is other solution?

1

There are 1 best solutions below

0
On

This may help: http://robinvdvleuten.nl/blog/handle-authenticated-users-in-behat-mink/

The main idea is to save/load browser cookies from/to file or to build it from scratch.