pytest helper for visual regression testing of rendered web pages with Playwright, built on pytest-mpl
Project Links
Meta
Author: Stuart Mumford
Requires Python: >=3.11
Classifiers
Development Status
- 3 - Alpha
Framework
- Pytest
Intended Audience
- Developers
Topic
- Software Development :: Testing
Programming Language
- Python
- Python :: 3
- Python :: 3.11
- Python :: 3.12
- Python :: 3.13
- Python :: 3.14
- Python :: 3.15
Operating System
- OS Independent
A pytest helper library for running visual regression tests against rendered web pages using Playwright, built on top of pytest-mpl.
This package is designed to use the excellent pytest-mpl, particularly the hybrid comparison mode, but for screenshots generated by playwright. The hybrid mode of pytest-mpl is a workflow used in a number of places for ease of reviewing and approving changes to figure tests, it has also been used by glue-jupyter with playwright generated screenshots, which is where this idea originated.
LLM Disclosure
This package was bootstrapped using an LLM, I’ve taken care to review its output at each step. I hope that having something useful for this is better than it not existing at all.