Screenshot comparison on osx / linux
Posted: Mon Dec 17, 2018 12:25 pm
I cannot get screenshot comparison to work at all. When running on my mac I get two possible issues depending on whether you run --screenshot-compare-with-base or --screenshot-compare-with-previous.
With base I see
and with previous I see an issue about libpng15 not being available, I'm running on High Sierra but I cannot see the latest osx making a difference, If I install libpng via homebrew it only installs the latest which is version 16, I have tried grabbing the repo and install the appropriate version of libpng but even that doesn't seem to fix the issue. I have also tried this on our Jenkins instances which are running linux and I have the same problem.
Lastly I am not sure how --screenshot-compare-with-base is meant to work, does it expect there to be a file called image with -base appended to it much like the --screenshot-compare-with-previous renames the current file to be -prev.png? There isn't much documentation for this.
Thanks for the help.
Damo
With base I see
Taking screenshot has failed with error: TypeError: Path must be a string. Received [Boolean: true]
Lastly I am not sure how --screenshot-compare-with-base is meant to work, does it expect there to be a file called image with -base appended to it much like the --screenshot-compare-with-previous renames the current file to be -prev.png? There isn't much documentation for this.
Thanks for the help.
Damo