@wdio/visual-service 9.2.0 → 9.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @wdio/visual-service
2
2
 
3
+ ## 9.2.1
4
+
5
+ ### Patch Changes
6
+ - d5afb54: ## #1129 Fix `TypeError: element.getBoundingClientRect is not a function` when a `ChainablePromiseElement` is passed to `checkElement`
7
+
8
+ When `checkElement` (or `saveElement`) was called with a `ChainablePromiseElement`, the lazy promise-based element reference that WebdriverIO's `$()` returns, the element was passed directly as an argument to `browser.execute()` without being awaited first. `browser.execute()` serializes its arguments for transfer to the browser context and cannot handle a pending Promise, so it arrived in the browser as a plain empty object `{}` instead of a WebElement reference. This caused `element.getBoundingClientRect is not a function` because the browser-side `scrollElementIntoView` script received `{}` rather than a DOM element.
9
+
10
+ # Committers: 1
11
+
12
+ - Wim Selles ([@wswebcreation](https://github.com/wswebcreation))
13
+
14
+ - Updated dependencies [d5afb54]
15
+ - @wdio/image-comparison-core@1.2.1
16
+
3
17
  ## 9.2.0
4
18
 
5
19
  ### Minor Changes
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@wdio/visual-service",
3
3
  "author": "Wim Selles - wswebcreation",
4
4
  "description": "Image comparison / visual regression testing for WebdriverIO",
5
- "version": "9.2.0",
5
+ "version": "9.2.1",
6
6
  "license": "MIT",
7
7
  "homepage": "https://webdriver.io/docs/visual-testing",
8
8
  "repository": {
@@ -24,7 +24,7 @@
24
24
  "@wdio/logger": "^9.18.0",
25
25
  "@wdio/types": "^9.25.0",
26
26
  "expect-webdriverio": "^5.6.4",
27
- "@wdio/image-comparison-core": "1.2.0"
27
+ "@wdio/image-comparison-core": "1.2.1"
28
28
  },
29
29
  "scripts": {
30
30
  "build": "run-s clean build:*",