{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/6"}],"enrichment":{"capability":"A pytest plugin that captures and compares visual snapshots of web pages rendered with Playwright, using pixel-level image matching to detect visual regressions.","skillfed_tags":["visual-testing","regression-detection","playwright"],"use_cases":["Detect unintended visual changes in UI components across browser and OS combinations during CI/CD.","Establish visual baselines for new features and track pixel-level changes in design systems.","Catch CSS or layout regressions that unit tests alone would miss, especially in responsive layouts.","Review and approve visual changes before merging pull requests with generated diff images.","Maintain visual consistency across browser versions by storing per-browser snapshots."],"what_it_does":"pytest-playwright-visual is a pytest plugin that automates visual regression testing for web applications. It extends pytest-playwright with an `assert_snapshot` fixture that captures screenshots during test runs and compares them pixel-by-pixel using the pixelmatch algorithm. On first run, snapshots are created; on subsequent runs, actual screenshots are compared against stored baselines with a configurable threshold (default 0.1). When mismatches occur, the plugin generates side-by-side diff images in a `snapshot_tests_failures` folder for manual review.\n\nThe plugin manages snapshot organization automatically, storing images in a structured folder hierarchy keyed by test name, browser, and OS. It requires explicit user review before accepting snapshot updates via the `--update-snapshots` flag, preventing accidental regressions from being silently committed. Dependencies are minimal: pytest-playwright for browser automation, Pillow for image handling, and pixelmatch for the comparison algorithm.","worth_installing":"Yes, if you need visual regression testing for Playwright-based tests and can tolerate aging maintenance. The plugin is lightweight, has no known vulnerabilities, and solves a real problem\u2014catching visual regressions that functional tests miss. However, verify compatibility with your current Playwright version before adopting, and monitor the repository for updates or consider alternatives if active maintenance becomes critical for your workflow."},"id":"pytest-playwright-visual","links":{"html":"https://skillfed.io/packages/pytest-playwright-visual","md":"https://skillfed.io/packages/pytest-playwright-visual.md","pypi":"https://pypi.org/project/pytest-playwright-visual/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2022-04-28","license_spdx":null,"license_treatment":"permissive","name":"pytest-playwright-visual","python_support":"supports_current","summary":"A pytest fixture for visual testing with Playwright"},"popularity":{"monthly_downloads":109343,"position":12518,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2.1.2"}
