Free Visual Regression Testing Framework (CSS Testing or Image Comparison Tool) - Ready To Use
Free Visual Regression Testing Framework - Ready To Use
A visual testing framework created using BackstopJS library and ready to use.
You simply add the URLs to be tested and it will test.
git clone https://github.com/vininaag/visual-regression-testing-framework.git
npm install
https://github.com/join
src\tests
folder. Create file signup.tests.js
and add scenario(test) for signup page like below.module.exports = [
{
label: 'Github SignUp Page',
url: 'https://github.com/join',
readySelector: "div[role='main']",
selectors: ['div[role="main"]']
}
];
Note: you can add multiple scenarios(tests) with comma seperated.
To add reference image we need to run the tests.
npm run test
It doesn't have any reference image for signup page
. Report will be like belownpm run approve
and it will take the current result as reference image. Now our test has reference image.src/bitmaps_reference
npm run test
All tests will pass.####Below features are already available & works. Documentation will be added soon.
Run a single test (npm run test -- SignUp
) will run all tests that has SignUp
in their title.
Configuration browser, size of browser & others.
How to use cookies.