My last article was about a WCAG 2.2 audit of OpenMRS O3 3.7.1, an open source electronic health record. axe-core found ten problems, and a manual pass with the keyboard, zoom and screen readers found more. Near the end I wrote that some of the manual findings could become plain Playwright tests, and that I had not written them yet.
Now I have. Five manual findings are encoded as Playwright tests that run against a local OpenMRS 3.7.1:
M1: focus order on a paginated table;
M3: an unannounced status message;
M6: focus hidden behind a toolbar at 200% zoom;
M7: reflow at 320 pixels;
M8: page titles.
All of them fail today, on purpose, and the suite is still green. The day OpenMRS fixes one of these bugs, the matching test turns red and tells me so.
Writing them also showed me two places where my own audit report was wrong.…