-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Break best practices into subpages #5132
base: main
Are you sure you want to change the base?
Conversation
bc3393a
to
b6b4ad3
Compare
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.
asfjhbajhbfalv
|
||
:::tip | ||
|
||
 <Icon name="check-circle" color="green" /> **Best Practice:** Use |
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.
LGTM 🎉
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.
aS
|
||
::: | ||
|
||
Many first time users look at Cypress code and think it runs synchronously. |
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.
uyADgckv
|
||
// Instead, do this. | ||
cy.get('a').as('links') | ||
cy.get('@links').first().click() |
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.
here too
// THE WAY YOU THINK IT DOES. | ||
const a = cy.get('a') | ||
|
||
cy.visit('https://example.cypress.io') |
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.
cy.visit('https://example.cypress.io') | |
cy.visit('https://example.cypress.io/home') |
No description provided.