garris / garris/BackstopJS

Request for Node Module Update to Enable Multiple Screenshot Support (createBitmaps.js, runPuppet.js)

Open
#1,561 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.2k
Forks
621
PR merge metrics
No merged PRs in 30d

Description

Hi, I've successfully configured the engine scripts to capture multiple screenshots. When I execute `backstop reference`, it captures multiple screenshots. Then, using `backstop test`, it compares these images without navigating to the page. This was achieved by modifying `createBitmaps.js` and `runPuppet.js` in the node modules to skip the screenshot process and update file names.

**Issue:** Can these modifications be incorporated into the node modules? Currently, they do not function with GitHub Actions. Attached are the files as JSON files.
- [createBitmaps.json](https://github.com/garris/BackstopJS/files/14822544/createBitmaps.json)
- [runPuppet.json](https://github.com/garris/BackstopJS/files/14822545/runPuppet.json)

**Multiple Screenshots:**
common-func.js
![2024-04-01_18h34_45](https://github.com/garris/BackstopJS/assets/29393557/e78ab7ad-4be2-43a4-b0b0-e4f067e45d9f)
get-reference.js
![image](https://github.com/garris/BackstopJS/assets/29393557/0256cdd8-99ab-473a-809f-9b7bc16c0674)
compare-screenshots.js
![2024-04-01_18h38_30](https://github.com/garris/BackstopJS/assets/29393557/43d04d16-3ceb-413a-8560-26f621bac67d)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.