{"repo":"percy/percy-playwright","free":true,"listed":false,"github":"https://github.com/percy/percy-playwright","clone":"git clone https://github.com/percy/percy-playwright.git","description":"Playwright client library for visual testing with Percy","language":"JavaScript","stars":17,"topics":["percy","percy-sdk","visual-testing","testing","playwright"],"license":"MIT","category":"scrapers-browser-automation","readme_excerpt":"@percy/playwright Percy visual testing for Playwright. Installation Usage This is an example using the percySnapshot function. For other examples of playwright usage, see the Playwright docs. Running the code above directly will result in the following logs: When running with percy exec , and your project's PERCY TOKEN , a new Percy build will be created and snapshots will be uploaded to your project. Configuration percySnapshot(page, name[, options]) - page ( required ) - A playwright page instance - name ( required ) - The snapshot name; must be unique to each snapshot - options - See per-snapshot configuration options toHaveScreenshot drop-in Route your existing Playwright expect(...).toHaveScreenshot() assertions through Percy with one config line and no test changes : Just the standard percy exec — no wrapper, no extra flags. Capture dispatches automatically by your project token : Project Flow --- --- Web Every toHaveScreenshot() becomes a Percy web snapshot: the live page is serialized with the same capture percySnapshot() uses (readiness gate, responsive capture, cross-origin iframes) and Percy renders it server-side. Locator subjects become element-scoped snapshots. App The captured PNG uploads straight through the comparison ingest — no render flow, exactly how App Percy ingests screenshots. anything else A clear wrong-token configuration error (use percyScreenshot() for Automate). The assertion always passes locally — the visual verdict moves to Percy's review UI, ","default_branch":null,"files":null,"tree":[],"storefront":"/r/percy","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/percy/percy-playwright/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}