A pytest fixture for visual testing with Playwright. Version 2.1.2 (released 2025). Active development with monthly releases.
pip install pytest-playwright-visualVerified import paths — ran on the pinned version, not inferred.
Basic visual test using the page fixture (provided by pytest-playwright). First run creates snapshots; subsequent runs compare.
Re-run tests with --update-snapshots after removing old snapshots, or manually restructure folders.
Use --update-snapshots with caution; expect test failure to prompt manual review. Or use v1.x if automatic update is needed.
Either omit snapshot_name to use default, or ensure unique names.