Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
s-light opened this issue Aug 15, 2024 · 1 comment
Open

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

s-light opened this issue Aug 15, 2024 · 1 comment

Comments

@s-light
Copy link

s-light commented Aug 15, 2024

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
testing-library/dom-testing-library#583 (comment)

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

@s-light
Copy link
Author

s-light commented Aug 15, 2024

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant