Skip to content

Commit 77a6621

Browse files
chore: release [skip ci] (#1114)
Co-authored-by: WebdriverIO Release Bot <bot@webdriver.io>
1 parent 2a518ff commit 77a6621

3 files changed

Lines changed: 19 additions & 19 deletions

File tree

.changeset/fix-matcher-threshold-save.md

Lines changed: 0 additions & 18 deletions
This file was deleted.

packages/visual-service/CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
# @wdio/visual-service
22

3+
## 9.1.3
4+
5+
### Patch Changes
6+
7+
- 2a518ff: # 🐛 Bugfixes
8+
9+
## #1111 Pass matcher threshold to core as saveAboveTolerance
10+
11+
When using visual matchers like `toMatchScreenSnapshot('tag', 0.9)` with `alwaysSaveActualImage: false`, the actual image was still being saved even when the comparison passed within the threshold.
12+
13+
The root cause was that the matcher's expected threshold was not being passed to the core comparison logic. The core used `saveAboveTolerance` (defaulting to 0) to decide whether to save images, while the matcher used the user-provided threshold to determine pass/fail - these were disconnected.
14+
15+
This fix ensures the matcher passes the expected threshold to the core as `saveAboveTolerance`, so images are only saved when the mismatch actually exceeds the user's acceptable threshold.
16+
17+
# Committers: 1
18+
19+
- Wim Selles ([@wswebcreation](https://github.com/wswebcreation))
20+
321
## 9.1.2
422

523
### Patch Changes

packages/visual-service/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@wdio/visual-service",
33
"author": "Wim Selles - wswebcreation",
44
"description": "Image comparison / visual regression testing for WebdriverIO",
5-
"version": "9.1.2",
5+
"version": "9.1.3",
66
"license": "MIT",
77
"homepage": "https://webdriver.io/docs/visual-testing",
88
"repository": {

0 commit comments

Comments
 (0)