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

Improve aliases and references doc #194

Closed
brian-mann opened this issue Nov 1, 2017 · 2 comments
Closed

Improve aliases and references doc #194

brian-mann opened this issue Nov 1, 2017 · 2 comments

Comments

@brian-mann
Copy link
Member

Indicate improper use of let or const assignment.

Talk about aliasing as this.

Sharing context between hooks + tests.

Call out some of these things as Anti Patterns with link to the doc explaining it all.

@brian-mann
Copy link
Member Author

Fixed by #220.

@iankpconcentricsky
Copy link

iankpconcentricsky commented Jun 29, 2021

Usually, replaying previous commands will return what you expect, but not always

Why's that? Can this be elaborated on?

What's the difference between:

cy.get('#nav header .user').as('user') (good)

and

cy.get('#nav').find('header').find('.user').as('user')

it isn't clarified. Just left as a breadcrumb of an unsolved mystery. How would, by grouping the retry, the latter fail where the original succeeds? This seems like it would be an overall best-practice even unrelated to variables?

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

No branches or pull requests

3 participants