Skip to content

chore(deps): upgrade cypress visual regression plugin to v4.2.0 - #3482

Merged
FRSgit merged 2 commits into
v2-developfrom
chore/upgrade-cypress-visual-regression-plugin
Sep 29, 2026
Merged

FRSgit merged 2 commits into
v2-developfrom
chore/upgrade-cypress-visual-regression-plugin

Conversation

@FRSgit

@FRSgit FRSgit commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

Related issue

n/a

Scope of work

  • Bump @frsource/cypress-plugin-visual-regression-diff from 3.3.10 to 4.2.0 in apps/test/vue and apps/test/react.
  • Make the two SfBadge max-value tests static. They used Math.random() in the test title, so every run created a fresh visual regression baseline instead of comparing against the existing one.

Notes on the v4 upgrade:

  • No baseline migration needed: snapshots are not committed in this repo (synced test folders are gitignored and cleaned before each run), so the v4 attempt-separator rename (name #0.png -> name_#0.png) has no effect here.
  • On Cypress 13 the plugin keeps reading options from env; the Cypress.expose change in 4.1 only applies from Cypress 15.10. No config changes required.
  • The plugin now depends on sharp 0.35.x, but the root resolutions pin keeps it at 0.33.0 (shared with Next). The plugin only uses resize/toFile, which work fine on 0.33.0.

Verified locally on Chrome headless:

Run Result
Vue, fresh baselines 221 passed
React, fresh baselines 221 passed
Vue, second run comparing against baselines 221 passed, no diff files
SfBadge spec, two consecutive runs same 12 baselines both times

Screenshots of visual changes

n/a

Checklist

  • Self code-reviewed
  • Changes documented
  • Semantic HTML
  • SSR-friendly
  • Caching friendly
  • a11y for WCAG 2.0 AA
  • examples created
  • blocks created
  • cypress tests created

🤖 Generated with Claude Code

FRSgit and others added 2 commits September 25, 2026 23:34
…to v4.2.0

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Random values in test titles produced a new visual regression baseline on
every run instead of comparing against the existing one.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Sep 25, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: e2911de

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@FRSgit
FRSgit merged commit bfa337e into v2-develop Sep 29, 2026
13 checks passed
@FRSgit
FRSgit deleted the chore/upgrade-cypress-visual-regression-plugin branch September 29, 2026 09:48
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