Menu

1 / 2

Testing accessibility in AG Grid: a grid-aware helper for Jest and Playwright

DEV Community: frontend·Hitesh Gharate·about 1 month ago
#FhZZUHht
#devtofrontend#devto#dev#grid#test
Long article (1101 words) — no AI summary yet.
Reading 0:00
15s threshold

Dense data grids are where accessibility problems like to hide. A table with thousands of rows, virtualized columns, inline buttons and color-coded values can look fine and still be hard to use with a keyboard or a screen reader.

General tools such as axe-core are great for checking a page. They are not built around grid-specific questions: Is the total row count exposed when rows are virtualized? Does the arrow key actually move focus one cell? Is a status shown only by a colored dot?

So I wrote a small helper, ag-grid-a11y-test , that adds grid-aware checks on top of the tools you already use. This post shows how to use it.

Status: early preview (alpha), not on npm yet. The code is public on GitHub and I am sharing it so people can try it and give feedback. The rules come from the ARIA grid pattern and AG Grid's commonly rendered markup. I have not yet validated them against every AG Grid version, so treat findings as prompts to investigate, not proof of conformance.…

Continue reading — create a free account

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