.toHaveTableContent() #389
Replies: 2 comments
-
Interesting idea. Unfortunately, I do not have any bandwidth to implement this. Also, it's a non-trivial piece of work if you consider that tables can have a pretty varied set of layouts (e.g. multiple header rows, footer rows, cells that span across multiple rows or across multiple columns, etc.) Not saying it is not possible, but I wonder how to deal with those situations in a generic way. If you're dealing with specific and more predictable tables that you'd like to assert against in an app you're working on, I'd recommend that you write your own custom matcher that can be less generic and more targeted to your specific use case. But doing this in a way that supports any table that you may throw at it can be daunting. |
Beta Was this translation helpful? Give feedback.
-
I'd like to be able to do something like:
and then even cooler:
Beta Was this translation helpful? Give feedback.
All reactions