mirror of
https://github.com/tester-army/e2e.git
synced 2026-11-22 18:19:48 +08:00
* fix(web): drop row, cell, and listitem roles under a presentational table or list A row, cell, or list item under role="presentation" or role="none" kept its role in the tree, so screen.tree() listed nodes getByRole could not find. implicitRole now inherits the presentational role from the table or list, as Playwright and Chrome do. * Apply suggestion from @cubic-dev-ai[bot] Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> * fix(web): give no inherited role to an element with no role of its own A lone th in a one-row presentational table has no role on main or in Playwright, but read as presentation. The tag role is now read first, and inheritance applies only when there is one. One conflict rule now serves the element and its parent. --------- Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>