I am new to backstopjs and I have backstop.json (part of it ) as
"onBeforeScript": "puppet/onBefore.js",
"onReadyScript": "puppet/onReady.js",
"scenarios": [
{
"label": "CBP Homepage",
"cookiePath": "backstop_data/engine_scripts/cookies.json",
"url": "development/url/somepage",
"referenceUrl": "uat/url/somepage",
.
.
}
I would like to run log in to development site when run reference(backstop reference) and and login to UAT when run test (backstop test) in onBeforeScript ?How do I achieve this or any suggestion for resource to follow ?