capybara
capybara copied to clipboard
Supporting tables that have both horizontal and vertical headers
Hi! 👋
Thank you for Capybara, I truly enjoy its neat-looking API!
Some time ago, while working on a project that had a table where both columns and rows were assigned some headers (like this example from MDN), I ran into issues with rows:
. I wanted to check whether all the expected rows were present on the page, but I couldn't verify the content of the cells that acted as the headers of the rows.
I decided to contribute to this wonderful project by extending the behavior of "rows". Now it supports TH
cells in TR
rows.
Let me know what you think. 🙂