Skip to content
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

Add support for ByRole with name #1127

Merged
merged 3 commits into from
Sep 22, 2022

Conversation

AugustinLF
Copy link
Collaborator

Summary

Folllow up of #875. I started from scratch given the amount of conflicts.

Closes #827

If merged as is, don't forget to mention @kiranjd as part of the release.

Kudo to @MattAgn's work in #977 which made that a breeze. Look at the diff between this PR and the previously opened one, the code reorg was def the right call.

Copy link
Member

@mdjastrzebski mdjastrzebski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome work @AugustinLF!

The code is indeed much simpler after @MattAgn's #977.

I've added some minor suggests and tweaks to address before we merge this.

src/queries/__tests__/role.test.tsx Outdated Show resolved Hide resolved
website/docs/Queries.md Outdated Show resolved Hide resolved
typings/index.flow.js Outdated Show resolved Hide resolved
typings/index.flow.js Outdated Show resolved Hide resolved
typings/index.flow.js Outdated Show resolved Hide resolved
src/queries/role.ts Outdated Show resolved Hide resolved
src/queries/__tests__/role.test.tsx Outdated Show resolved Hide resolved
src/queries/__tests__/role.test.tsx Show resolved Hide resolved
src/queries/__tests__/role.test.tsx Show resolved Hide resolved
src/queries/role.ts Outdated Show resolved Hide resolved
src/queries/role.ts Outdated Show resolved Hide resolved
Copy link
Member

@mdjastrzebski mdjastrzebski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requested one small minor readability change.

@AugustinLF
Copy link
Collaborator Author

@mdjastrzebski we should be good!

Copy link
Member

@mdjastrzebski mdjastrzebski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job @AugustinLF 🚀 Also big thank you 🙏🏻 to @kiranjd for submitting the initial implementation of this PR as #875.

@mdjastrzebski mdjastrzebski merged commit c9ab3cf into callstack:main Sep 22, 2022
@AugustinLF AugustinLF deleted the feat/by-role-with-name branch September 22, 2022 12:43
@mdjastrzebski
Copy link
Member

🎉 This PR is included in version 11.2.0 🎉

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

Successfully merging this pull request may close these issues.

getByRole should accept a second argument to refine query as in react-testing-library
2 participants