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
Adjust commands to use React selectors if element has isReactElement flag #4454
Adjust commands to use React selectors if element has isReactElement flag #4454
Conversation
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.
Can we add some unit tests for it? Happy to help with these if you want.
@@ -41,5 +41,7 @@ | |||
*/ | |||
|
|||
export default function isExisting () { |
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.
Is it worth to cover other isSomething
methods?
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.
That's a good point, I'll take a look at how these methods and adjust them if needed.
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.
The only other command I could find using this was isDisplayed
. It has been adjusted in a50e10d .
@christian-bromann Will do, I'll ping you on gitter if any questions arise. |
Codecov Report
@@ Coverage Diff @@
## master #4454 +/- ##
==========================================
+ Coverage 99.12% 99.13% +<.01%
==========================================
Files 188 188
Lines 4711 4715 +4
Branches 1003 1007 +4
==========================================
+ Hits 4670 4674 +4
Misses 37 37
Partials 4 4
Continue to review full report at Codecov.
|
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.
👍 nice
Proposed changes
Correctly use
react$$
when waiting for React element to exist in DOM.Types of changes
Checklist
Further comments
Issue: #4442
Reviewers: @webdriverio/technical-committee