@applitools/driver 1.8.11 → 1.8.12

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/dist/context.js +2 -2
  2. package/package.json +1 -1
package/dist/context.js CHANGED
@@ -480,8 +480,8 @@ class Context {
480
480
  // const contextScrollingRegion = await currentContext.getScrollingRegion()
481
481
  const parentContextInnerOffset = (_b = (await ((_a = currentContext.parent) === null || _a === void 0 ? void 0 : _a.getInnerOffset()))) !== null && _b !== void 0 ? _b : { x: 0, y: 0 };
482
482
  // TODO revisit
483
- if ((utils.geometry.contains(contextRegion, region) || !currentContext.isMain) &&
484
- !utils.geometry.equals(contextRegion, region)) {
483
+ if (this.driver.isWeb ||
484
+ (!utils.geometry.equals(contextRegion, region) && utils.geometry.contains(contextRegion, region))) {
485
485
  this._logger.log('Intersecting context region', contextRegion, 'with context region', region);
486
486
  region = utils.geometry.intersect(contextRegion, utils.geometry.offset(region, contextRegion));
487
487
  // region = utils.geometry.intersect(contextScrollingRegion, region)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/driver",
3
- "version": "1.8.11",
3
+ "version": "1.8.12",
4
4
  "description": "Applitools universal framework wrapper",
5
5
  "keywords": [
6
6
  "applitools",