This is an easy-to-use web regression testing tool that you can use it to easily compare two web pages. It is based on puppeteer, pixelmatch and Node.js
If you have proto installed, you can install this package by running the following command:
proto use
pnpm iIf you don't have proto installed, you can install this package by running the following command:
npm iYou can found the versions of tools in .prototolls file.
You can run the following command to compare two web pages:
pnpm run devAnd The Diff image will be saved in ./dist/diff folder, and the director will be named by the path of the web pages.
You can change the url of the web pages in ./src/index.ts file.
Source Image Size vs Target Image Size
Because pixelmatch rule, the source image and target image should have the same size. If the size of the source image and target image are different, the diff image will be blank.