Hi all,
I wrote tests to compare images on the web page. With show = true option everything is working perfectly fine.
But when I switched to headless mode my test was failed with error: The base image is of 380 X 568 and actual image is of 381 X 568. Please use images of same dimensions so as to avoid any unexpected results.
Do I have a way to make it is working for both: headless and non-headless modes?
My test:
I.screenshotElement(homePage.contactImg, “Contact_Image”);
I.seeVisualDiff(“Contact_Image.png”, {tolerance: 2, prepareBaseImage: false});
Config:
I assume when I will move this test Jenkins there is possibility of the same issue