lexanth / testing-library-table-queries

Additional testing-library queries for querying tables like a user
19 stars 3 forks source link

feature: add getRowByText('John Smith') #47

Open s-light opened 2 months ago

s-light commented 2 months ago

thanks Alex for your work!! just found it and your ideas discussions in the orig. thread and your package here helped me a lot!!!

this featurerequest is for getRowByText('John Smith'): just a shorthand / alias for getByRole('row', { name: 'John Smith' }) as mentioned by kealjones-wk at https://github.com/testing-library/dom-testing-library/issues/583#issuecomment-992999990

this original verbose version is working fine for me - and i would love to have easy (for newbies) readable tests ;-)

s-light commented 2 months ago

i think this is different from getRowByFirstCellText('John Smith') as i have a bunch of action columns as first columns (prepending my real data-columns)