-
Notifications
You must be signed in to change notification settings - Fork 473
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
fix: use exact match for data-testid #29
fix: use exact match for data-testid #29
Conversation
Need to add tests to exercise error paths for EDIT: done |
export {matches} | ||
function matchesExact(textToMatch, node, matcher) { | ||
if (typeof textToMatch !== 'string') { | ||
return false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the only line not exercised by public api tests because the exact match is already pre-filtered with querySelectorAll
in queryAllByAttribute
. Added unit tests for the matchers instead to document match behavior.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks great. Let's just fix that failing test and we should be good to go!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great! Thanks for this.
🎉 This PR is included in version 1.10.1 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
* docs(contributors): add sompylasar * docs(contributors): fix @lgandecki missing docs
[fixes #8]
What:
Why:
How:
Checklist: