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

Update to latest cypress #4420

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

mattvague
Copy link
Contributor

@mattvague mattvague commented Oct 28, 2024

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.

@mattvague mattvague marked this pull request as ready for review October 28, 2024 16:08
@mattvague mattvague changed the title Task/update cypress Update to latest cypress Oct 28, 2024
Comment on lines 772 to 778
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());
}
Copy link
Contributor Author

@mattvague mattvague Oct 28, 2024

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?)

Copy link
Contributor

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.

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.

2 participants