@applitools/eyes-sdk-core
Advanced tools
Comparing version 13.8.22 to 13.8.23
@@ -243,3 +243,3 @@ 'use strict' | ||
) | ||
this._logger.error('Failed to set the viewport size', e) | ||
this._logger.log('Failed to set the viewport size', e) | ||
throw new EyesError('Failed to set the viewport size', e) | ||
@@ -246,0 +246,0 @@ } |
@@ -18,2 +18,3 @@ const utils = require('@applitools/utils') | ||
const {appendUserTestIdToTestResults} = require('../utils/amend-test-results') | ||
const EyesError = require('../errors/EyesError') | ||
@@ -121,5 +122,11 @@ class EyesVisualGrid extends EyesCore { | ||
if (this._configuration.getViewportSize()) { | ||
const vs = this._configuration.getViewportSize() | ||
await this.setViewportSize(vs) | ||
const vsFromConfiguration = this._configuration.getViewportSize() | ||
if (vsFromConfiguration) { | ||
try { | ||
await this.setViewportSize(vsFromConfiguration) | ||
} catch (error) { | ||
if (error instanceof EyesError) | ||
this._logger.warn(`failed to "setViewportSize" to ${vsFromConfiguration}, but still continue with the test`) | ||
else throw error | ||
} | ||
} | ||
@@ -126,0 +133,0 @@ |
{ | ||
"name": "@applitools/eyes-sdk-core", | ||
"version": "13.8.22", | ||
"version": "13.8.23", | ||
"description": "The core components of Eyes JavaScript SDK", | ||
@@ -82,3 +82,3 @@ "keywords": [ | ||
"@applitools/dom-snapshot": "4.6.2", | ||
"@applitools/driver": "1.9.21", | ||
"@applitools/driver": "1.9.22", | ||
"@applitools/execution-grid-client": "1.1.24", | ||
@@ -102,3 +102,3 @@ "@applitools/isomorphic-fetch": "3.0.0", | ||
"@applitools/test-utils": "1.4.3", | ||
"@applitools/visual-grid-client": "15.13.15", | ||
"@applitools/visual-grid-client": "15.13.16", | ||
"chai": "4.2.0", | ||
@@ -105,0 +105,0 @@ "chai-uuid": "1.0.6", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
456492
14050
+ Added@applitools/driver@1.9.22(transitive)
- Removed@applitools/driver@1.9.21(transitive)
Updated@applitools/driver@1.9.22