Compares the current page with a reference image using pixel match.
The Playwright page object
The filename of the current page screenshot
The filename of the reference screenshot to compare with
Then I pw expect page "current-view.png" to closely match "reference-view.png" Copy
Then I pw expect page "current-view.png" to closely match "reference-view.png"
Compares the current page with a reference image using pixel match.