Lawondyss
Lawondyss

Reputation: 113

How to disable reset session between scenarios in Behat Mink?

-- 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?

Upvotes: 0

Views: 1241

Answers (1)

ont.rif
ont.rif

Reputation: 1334

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.

Upvotes: 1

Related Questions