garris / garris/BackstopJS

Keeping session state between scenarios?

Open
#624 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.2k
Forks
621
PR merge metrics
No merged PRs in 30d

Description

This might be a stupid question, but I cannot get BackstopJS to keep the session state between scenarios using Chromy. I can get Chromy to log into our website in a scenario, but the next scenario the session is gone and the test is performed as a logged out user again. I do not want to login in prior to every scenario. Is there a way to keep the session state between scenarios?

I've tried setting a userDataDir, but that does not help. I also tried to use getCookies() and save the cookies to load them in every scenario, but getCookies is not available in Chromy v0.5.5 and has only been recently added (will be in >= v0.5.8).

Any thoughts?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.