garris / BackstopJS

Catch CSS curve balls.
http://backstopjs.org
MIT License
6.66k stars 602 forks source link

Multiple Screenshots in a Single Script #1545

Closed annasesb01 closed 3 months ago

annasesb01 commented 4 months ago

Currently, I am only able to capture one screenshot per engine script and JSON configuration. Is there a way to capture multiple screenshots using a single script?

garris commented 4 months ago

Each scenario takes only 1 screenshot at a time. Most users who ask about this question are looking to test a complex UI flow. The recommended way to do this is to directly stub the data side of the app (including cookie states) in a scenario so you are not actually testing your application end-to-end, the goal is to test that the UI displays the right thing given the right data.

Hopefully this makes sense. Good luck!