A simple tool leveraging on BackstopJS to compare two webpages for visual regression testing.
- nodejs
- Install dependencies for both server and client.
npm install
- Run the server.
node server.js
- Run the client.
npm run dev
-
Open Chrome and navigate to
chrome://extensions/
. -
Enable
Developer mode
by toggling the switch in the top-right corner. -
Click the "Load unpacked" button
-
Select the
/utils/cookie-exporter
directory. -
The extension should now appear in your extensions list.
-
Navigate to the website you want to extract cookies from.
-
Click the Cookie Exporter extension icon in your browser toolbar.
-
Choose whether to export cookies from:
- Current tab only (cookies for the current domain)
- All cookies (all cookies in your browser)
-
Click the "Export Cookies" button.
-
Choose where to save the JSON file when prompted.
-
Copy the contents of the generated file to the
/server/backstop_data/engine_scripts/cookies.json
file.