Menu

1 / 2

My accessibility tests fail on purpose. Two of them corrected my own audit

DEV Community: typescript·Tayguara Reis·10 days ago
#f7L14kXK
#devtotypescript#devto#dev#test#focus
Long article (2393 words) — no AI summary yet.
Reading 0:00
15s threshold

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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.