Playwright Cucumber TS Steps
    Preparing search index...

    Function expectPageToCloselyMatch

    • Compares the current page with a reference image using pixel match.

      Parameters

      • page: any

        The Playwright page object

      • currentFilename: string

        The filename of the current page screenshot

      • referenceFilename: string

        The filename of the reference screenshot to compare with

      Returns Promise<void>

      Then I pw expect page "current-view.png" to closely match "reference-view.png"