Skip to content

fix: resolve ignore* presets with resemble last-wins semantics#1177

Merged
wswebcreation merged 1 commit into
ws-ignore-feature-parityfrom
ws-ignore-preset-resolution
Jul 4, 2026
Merged

fix: resolve ignore* presets with resemble last-wins semantics#1177
wswebcreation merged 1 commit into
ws-ignore-feature-parityfrom
ws-ignore-preset-resolution

Conversation

@wswebcreation

Copy link
Copy Markdown
Member

After #1175, pixelmatch threshold and AA forgiveness were derived independently from each flag in the ignore list. Combined modes such as ignoreLess with the default ignoreAntialiasing: true still inherited AA forgiveness instead of following resemble's last-wins preset model.

What changed

  • Added resolveComparePreset with resemble last-wins ordering matching prepareIgnoreOptions
  • ignoreLess, ignoreAlpha, ignoreColors, and ignoreNothing now apply their own threshold and AA rules when active
  • Default-only ignoreAntialiasing: true still uses the forgiving preset; explicit ignoreAntialiasing: false stays strict

- apply last-wins threshold and AA rules for ignoreLess, ignoreAlpha, ignoreColors, and ignoreNothing
- keep forgiving default when only ignoreAntialiasing applies
- add unit and executeImageCompare integration tests
- add patch changeset for image-comparison-core and visual-service
@changeset-bot

changeset-bot Bot commented Jul 4, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 7800494

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@wdio/image-comparison-core Patch
@wdio/visual-service Patch

Not sure what this means? Click here to learn what changesets are.

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

@wswebcreation wswebcreation changed the base branch from main to ws-ignore-feature-parity July 4, 2026 05:50
@wswebcreation wswebcreation merged commit f98c873 into ws-ignore-feature-parity Jul 4, 2026
13 checks passed
@wswebcreation wswebcreation deleted the ws-ignore-preset-resolution branch July 4, 2026 05:59
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