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
Documentation update for react$ and react$$ #3944
Conversation
Added 'selector' as the parameter in the documentation of react$. Please propose a better description for this parameter, if required.
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.
👍🏻
@baruchvlz Please see if this is valid change. |
Can you please sign the CLA? |
Done! |
Codecov Report
@@ Coverage Diff @@
## master #3944 +/- ##
=======================================
Coverage 98.54% 98.54%
=======================================
Files 153 153
Lines 3448 3448
Branches 752 752
=======================================
Hits 3398 3398
Misses 45 45
Partials 5 5
Continue to review full report at Codecov.
|
Yea, saw this was missing as well. Thanks @Raulster24. |
Added parameter 'selector' for react$$ documentation
@@ -15,7 +15,8 @@ | |||
}); | |||
* </example> | |||
* | |||
* @alias browser.react$ | |||
* @alias browser.react$$ | |||
* @param {String=} selector React elements or HTML elements | |||
* @param {Object=} props React props the element should contain | |||
* @param {Object=} state React state the element should be in | |||
* @return {Element} |
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.
does it return one Element, I suppose it should be Element[]
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.
@CrispusDH Yes, it should be Element[]
, it returns an array of elements. I will do the changes.
@baruchvlz Please confirm.
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.
Added one minor wording suggestion
Co-Authored-By: Raulster24 <rahulsri.pccs@gmail.com>
Co-Authored-By: Raulster24 <rahulsri.pccs@gmail.com>
For some reason the typings display the return as |
If you use wdio testrunner in sync mode you need to import typings as follows:
|
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.
👍
* Documentation update for react$ Added 'selector' as the parameter in the documentation of react$. Please propose a better description for this parameter, if required. * removed trailing space * Documentation update for react$$ Added parameter 'selector' for react$$ documentation * Update description of parameter selector Co-Authored-By: Raulster24 <rahulsri.pccs@gmail.com> * Update description of parameter selector Co-Authored-By: Raulster24 <rahulsri.pccs@gmail.com> * Update to @return {Element} @return {Element} changed to @return {Element[]} as react$$ returns an array of elements * Update packages/webdriverio/src/commands/browser/react$.js Co-Authored-By: Raulster24 <rahulsri.pccs@gmail.com> * update @return {Element} update @return {Element} to @return {Element[]}
Proposed changes
Types of changes
Checklist
Further comments
Resolve #3943
Reviewers: @webdriverio/technical-committee