Skip to content
This repository has been archived by the owner on Jul 14, 2020. It is now read-only.

Pass through all docs and make consistant (and correct minor issues) #52

Merged
merged 3 commits into from
Oct 10, 2018

Conversation

Robdel12
Copy link
Contributor

What is this?

With #51 being merged through it was a good time to go through and make all of our inline docs consistent in style. With a fresh pair of eyes I went through all of the docs and double checked everything. It's possible I missed things, so please double check!

This will close #25

* }
* ```
*
* ``` javascript
* let $listItems = await new ListInteractor('ul').getItems()
* let $listItems = await new ListInteractor('ul').items;
Copy link
Contributor

Choose a reason for hiding this comment

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

No need to await here

* }
* ```
*
* ``` javascript
* let $heading = await new PageInteractor().getHeading()
* let $heading = await new PageInteractor().heading;
Copy link
Contributor

Choose a reason for hiding this comment

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

No need to await here either

@@ -6,7 +6,7 @@ import { computed } from './helpers';
* matching the provided selector.
*
* ``` javascript
* let $listItems = await new Interactor('ul').findAll('li');
* let $listItems = new Interactor('ul').findAll('li');
Copy link
Contributor

Choose a reason for hiding this comment

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

The methods find and findAll still needs to await. The property creators do not. You can see in the two function bodies for each one returns a convergence and the other returns a computed element.

The methods are used to wait for elements to exist, and the created properties can be used inside convergent assertions.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ahhh, gotcha. That makes sense

@Robdel12 Robdel12 merged commit 504288d into master Oct 10, 2018
@Robdel12 Robdel12 deleted the rd/passthrough-docs branch October 10, 2018 14:31
@Robdel12 Robdel12 mentioned this pull request Oct 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix find docs example
2 participants