Skip to content

Makes wrap(promise) more prominent #2664

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

Closed
wants to merge 1 commit into from
Closed

Makes wrap(promise) more prominent #2664

wants to merge 1 commit into from

Conversation

TheJoeSchr
Copy link

As indicated in #1322 and ff, it needs to be immediately communicated to new user that using .wrap helps immensely with promises.

just spend a few days ripping my hair out because I didn't see this before

As indicated in #1322 and ff,  it needs to be immediately communicated  to new user that using `.wrap` helps immensely with promises.

just spend a few days ripping my hair out because I didn't see this before
Copy link
Member

@jennifer-shehane jennifer-shehane left a comment

Choose a reason for hiding this comment

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

This should be specified in the ## Assertions section of the document - so needs to define a specific assertion in the https://github.com/cypress-io/cypress-documentation/blob/develop/lib/tags/assertions.js#L10:L10 tag for wrap that explains it retries until the promise resolves.

Then reference this definition here: https://github.com/cypress-io/cypress-documentation/blob/develop/source/api/commands/wrap.md#L161:L161

Adding an example to the Examples section of this would also be more ideal.

@TheJoeSchr
Copy link
Author

TheJoeSchr commented Mar 27, 2020 via email

@jennifer-shehane
Copy link
Member

Closing in favor of #2689

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants