Capture a full-page screenshot of the current page at the current viewport width. The page is settled first and animations are stopped. The image is kept in memory (and in DIFFY_SCREENSHOTS_DIR when set) until "send screenshots to diffy with name" uploads the batch. Taking the same page at the same width again replaces the earlier image.
Diffy API: none (Playwright screenshot, kept in memory until it is sent)
Examples
Then I take screenshot
Then we take screenshot
And I take screenshot
And we take screenshot
But I take screenshot
Then take screenshot
And take screenshot
Pattern
Then(/^(I |we )*take screenshot$/, …)
Part of @webship-js/diffy-steps (github.com/webship/diffy-steps), a step pack for Webship-js 2.0.x.