-
Notifications
You must be signed in to change notification settings - Fork 953
Private/caolan/morea11ytraverse #13970
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
Conversation
74b500b to
ae02232
Compare
Signed-off-by: Caolán McNamara <[email protected]> Change-Id: Ie3f8367755e84df954902a6bae8dcc0ceb077e28
7491eac to
c5f02d3
Compare
schedule retry if there are other tasks, but limit to some arbitrary value of retries before happening anyway to ensure this gets called. Signed-off-by: Caolán McNamara <[email protected]> Change-Id: Ibfd66365ea2d8fa7c7ba9a4f50d0019f0d09ac33
Signed-off-by: Caolán McNamara <[email protected]> Change-Id: I2563e2975152e83a7dc823bdd63b309a8a6f1867
Signed-off-by: Caolán McNamara <[email protected]> Change-Id: Ie5ab0ca30c7df298065681231af6661c5ab6c6f1
Signed-off-by: Caolán McNamara <[email protected]> Change-Id: I85e912f35d53d0fc41c13d3184e7f6160080adca
Signed-off-by: Caolán McNamara <[email protected]> Change-Id: I97621a66ba87e199bca47137183e5f0c74614c78
c5f02d3 to
6353247
Compare
|
The main bits are trying to make things more reliable by:
|
| .should('have.length.at.least', level) | ||
| .last(); | ||
| .should('have.length', level) | ||
| .then($dialogs => cy.wrap($dialogs.last())) |
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.
what's the difference here .then(...) vs .last()?
I stopped to use then for getters if there is no reason behind (we were failing on that in the past).
It's meant to be used for one-time "actions" (no auto-retry is provided).
https://docs.cypress.io/api/commands/should#Differences
|
good to see the 5 levels of callbacks squashed into onDrain! :) |
Summary
TODO
Checklist
make prettier-writeand formatted the code.make checkmake runand manually verified that everything looks okay