I am trying to go to different urls and compare screenshots with baseline image using matchImageSnapshot. Issue here is when one of my url fail with matchimagesnapshot -it is not continuing to next URL.NOTE:I tried to run with variable --env failOnSnapshotDiff=false -issue with this approach is -i wont get any clue which url failed unless i go manually and check diff folder.
Is there any way i can achieve this Say for eg i have 3 urls in my sample - i want to continue to next url even if url1 failed and i need to get a error for failed urls? Thanks for any help
beforeEach(function() {
cy.viewport(1680,1050);
});
const pages=[
"https://URL1",
"https://URL2",
"https://URL3",
"https://URL4"
]
describe('screencheck', () => {
it('scree', () => {
cy.login().then(()=>{
pages.forEach((page)=>{
cy.setResolution([1680,1050]);
cy.visit(page);
cy.wait(30000);
cy.get('.itl-exit-info-panel > .ng-scope').then(()=>
{
cy.get('.itl-exit-info-panel > .ng-scope').root().matchImageSnapshot(page);
// })
})
});
});
})
})