-
Notifications
You must be signed in to change notification settings - Fork 44
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: support TextInput editable={false} prop check in isEnabled/isDisabled matchers #135
fix: support TextInput editable={false} prop check in isEnabled/isDisabled matchers #135
Conversation
42f9c49
to
0b3de92
Compare
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.
Almost there :-)
Codecov Report
@@ Coverage Diff @@
## main #135 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 12 12
Lines 224 227 +3
Branches 70 71 +1
=========================================
+ Hits 224 227 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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.
We need one more change, see comments for details
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.
Pls check comments.
140494c
to
efbfca6
Compare
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.
Looks good, let's 🚢 it!
@HugoChollet congratulation on your first PR to Jest Native! 👏
🎉 This PR is included in version 5.3.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
What:
toBeDisabled
andtoBeEnabled
matcher will now look at theeditable
prop from theTextInput
componentWhy:
TextInput
does not have adisabled
props but aeditable
to enable or disable it. The only way to test if it is truly disabled is througheditable
How:
Added a supplementary check in
isElementDisabled
functionChecklist: