Skip to content
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

Merged
merged 8 commits into from May 8, 2019

Conversation

Raulster24
Copy link
Contributor

Proposed changes

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

  • I have read the CONTRIBUTING doc
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Further comments

Resolve #3943

Reviewers: @webdriverio/technical-committee

Added 'selector' as the parameter in the documentation of react$. Please propose a better description for this parameter, if required.
@jsf-clabot
Copy link

jsf-clabot commented May 8, 2019

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@christian-bromann christian-bromann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏻

@Raulster24
Copy link
Contributor Author

@baruchvlz Please see if this is valid change.

@christian-bromann
Copy link
Member

Can you please sign the CLA?

@Raulster24
Copy link
Contributor Author

Can you please sign the CLA?

Done!

@codecov
Copy link

codecov bot commented May 8, 2019

Codecov Report

Merging #3944 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           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
Impacted Files Coverage Δ
...ckages/webdriverio/src/commands/browser/react$$.js 100% <ø> (ø) ⬆️
...ackages/webdriverio/src/commands/browser/react$.js 100% <ø> (ø) ⬆️

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 a2ca188...d5d2e08. Read the comment docs.

@baruchvlz
Copy link
Member

Yea, saw this was missing as well. Thanks @Raulster24.

Added parameter 'selector' for react$$ documentation
@Raulster24 Raulster24 changed the title Documentation update for react$ Documentation update for react$ and react$$ May 8, 2019
@@ -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}
Copy link
Contributor

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[]

Copy link
Contributor Author

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.

Copy link
Member

@christian-bromann christian-bromann left a 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

packages/webdriverio/src/commands/browser/react$$.js Outdated Show resolved Hide resolved
packages/webdriverio/src/commands/browser/react$$.js Outdated Show resolved Hide resolved
packages/webdriverio/src/commands/browser/react$.js Outdated Show resolved Hide resolved
christian-bromann and others added 3 commits May 8, 2019 11:57
Co-Authored-By: Raulster24 <rahulsri.pccs@gmail.com>
Co-Authored-By: Raulster24 <rahulsri.pccs@gmail.com>
@return {Element} changed to @return {Element[]} as react$$ returns an array of elements
christian-bromann and others added 2 commits May 8, 2019 12:08
Co-Authored-By: Raulster24 <rahulsri.pccs@gmail.com>
update @return {Element} to @return {Element[]}
@baruchvlz
Copy link
Member

For some reason the typings display the return as Promise<WebdriverIO.Element> not sure if this is intended or if it's wrong. @christian-bromann

@christian-bromann
Copy link
Member

For some reason the typings display the return as Promise<WebdriverIO.Element> not sure if this is intended or if it's wrong

If you use wdio testrunner in sync mode you need to import typings as follows:

"types": ["node", "@wdio/sync"]

see https://webdriver.io/docs/typescript.html

Copy link
Member

@christian-bromann christian-bromann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@christian-bromann christian-bromann added the PR: Docs 📝 PRs that contain changes to the documentation label May 8, 2019
@christian-bromann christian-bromann merged commit ee10d2d into webdriverio:master May 8, 2019
yamkay pushed a commit to MoveInc/webdriverio that referenced this pull request Sep 4, 2019
* 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[]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: Docs 📝 PRs that contain changes to the documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using react$ is returning 'method is not implemented' error
5 participants