Skip to content

fix(suggestions): don't suggest byLabelText when using byLabelText #835

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

Merged
merged 1 commit into from
Nov 20, 2020

Conversation

benmonro
Copy link
Member

@benmonro benmonro commented Nov 20, 2020

What: a bug fix on suggestions for findByLabelText

Why: when using findByLabelText, you would get a suggestion even if you're already using findByLabelText.

How: use the right function when passing the name of the method.

Checklist:

  • Documentation added to the N/A
    docs site
  • Tests
  • Typescript definitions updated N/A
  • Ready to be merged

@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 53f29f7:

Sandbox Source
react-testing-library-examples Configuration

@codecov
Copy link

codecov bot commented Nov 20, 2020

Codecov Report

Merging #835 (53f29f7) into master (010f8be) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #835   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           26        26           
  Lines          934       934           
  Branches       286       286           
=========================================
  Hits           934       934           
Impacted Files Coverage Δ
src/queries/label-text.js 100.00% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 010f8be...53f29f7. Read the comment docs.

@benmonro
Copy link
Member Author

@testing-library/dom 👋

@benmonro benmonro merged commit c6e7a83 into master Nov 20, 2020
@github-actions
Copy link

🎉 This PR is included in version 7.28.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@nickserv nickserv deleted the feature/fix-find-by-label-text-suggestion branch November 20, 2020 23:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants