garris / garris/BackstopJS

How do I compare screenshots made during onReady?

Open
#1,475 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.2k
Forks
621
PR merge metrics
No merged PRs in 30d

Description

I am creating screenshots for testing an app, and I require multiple screenshots after clicks and inputs in a specific order.

`
await page.waitForNetworkIdle()
await sleep(1000)

await page.click("button.add-item")

await sleep(1000)
await page.screenshot()

await page.click("div[class^='buttonGroup'] > button:nth-child(2)")
await sleep(1000)

await page.screenshot()
await sleep(10000)
`

In this example the screenshots are ignored/overwritten and in the end I only get one screenshot at the end in the html report.
How do I setup something like this correctly?

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.