I'm using backstopjs for visual testing while developing my project, After adding new pages to the project I always have to generate reference image right from the first page till the last one.
I don't want this generation of reference images from the startup. I only want to generate reference of the new page that is being added to the configs.
This is the script :
{
"viewports": [
{
"name": "desktop",
"width": 1600,
"height": 900
}
],
"grabConfigs": [
{
"testName": "testName-1",
"url": "http://localhost/project/index.html",
"hideSelectors": [],
"removeSelectors": [],
"selectors": [
"body"
]
},
{
"testName": "testName-2",
"url": "http://localhost/project/about.html",
"hideSelectors": [],
"removeSelectors": [],
"selectors": [
"body"
]
},
{
"testName": "testName-3",
"url": "http://localhost/project/contact.html",
"hideSelectors": [],
"removeSelectors": [],
"selectors": [
"body"
]
}
]
}
Now, I only want to generate reference of the ../contact.html
.
But after generating reference of the contact.html page it should not delete the previous referrals of about.html and index.html page.
And after running the "gulp test" it should check all the the page referrals of old and newly generated referral images.