-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Update to latest cypress #4420
base: main
Are you sure you want to change the base?
Update to latest cypress #4420
Conversation
get("@button").trigger("click", { ctrlKey: true, shiftKey: true, metaKey: true, altKey: true }); | ||
get("@shift").as("shift").should(beChecked()); | ||
get("@ctrl").as("ctrl").should(beChecked()); | ||
get("@meta").as("meta").should(beChecked()); | ||
get("@alt").as("alt").should(beChecked()); | ||
get("@cmd").as("cmd").should(beChecked()); | ||
get("@shift").should(beChecked()); | ||
get("@ctrl").should(beChecked()); | ||
get("@meta").should(beChecked()); | ||
get("@alt").should(beChecked()); | ||
get("@cmd").should(beChecked()); | ||
} |
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.
Not sure why this wasn't causing an issue before (or maybe it was and it was hidden), but in the latest cypress this this throws a max stack depth error (as you would expect it to I think?)
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.
funny.
I think that's my mistake. I added those in one spot, and maybe copy pasted it without care and it happened to work on the old version.
Current version of Cypress is 7.0.0 which is quite out of date and was running very slowly (at least on my computer). This PR updates to Cypress 13.15.1 which makes the tests run much faster and paves the way for us to also see if we can migrate from e2e specs to component specs which (IMO) are more suited to this case. Happy to help with that as well in a future PR.