Skip to content

Downgrade Cypress to fix snapshots #1795

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

Merged
merged 1 commit into from
Apr 7, 2025
Merged

Downgrade Cypress to fix snapshots #1795

merged 1 commit into from
Apr 7, 2025

Conversation

axelboc
Copy link
Contributor

@axelboc axelboc commented Apr 3, 2025

I gave up...

For context, I upgraded Cypress to v14 in #1783, which broke the snapshots because software WebGL is deprecated in the latest Chromium. So then I switched the browser to Firefox in the CI only to remember that it generates flaky snapshots... I tried switching back to Electron/Chrome and fixing the deprecation issue. After many, many attempts, the only fix I could find was to add 1s delay before taking each screenshot, which really slowed down the tests...

So in the end, I prefer to keep my sanity and downgrade Cypress. Hopefully they will address the problem soon.

I've added a note in the CONTRIBUTING guide so I remember the flakiness of Firefox next time around...

I also restore Prettier's proseWrap option. I mistakenly thought it was no longer needed but it is. What caught me was that once text is wrapped onto multiple lines, it remains wrapped regardless of the proseWrap option. I'll have to re-add this option in other projects as well, silly me 😓

@axelboc axelboc requested a review from loichuder April 3, 2025 15:44
@axelboc axelboc merged commit 849beff into main Apr 7, 2025
8 checks passed
@axelboc axelboc deleted the screenshots branch April 7, 2025 13:21
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.

1 participant