@applitools/driver
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -7,3 +7,3 @@ { | ||
"version": "file:../dry-run.tgz", | ||
"integrity": "sha512-zRt9c44ilW/TBn1wHGgoORJ3ye2xWnKfoiwAIqeUKA5q7GxRy1ec3qu6v+7W6Rj4QIj+W/49r6TO773cIMoQPQ==", | ||
"integrity": "sha512-EBfwFjQLae5ODPLRI62hTUk1d9awx4dyM6hm5c+IVa0IYP/P0I3+uY1vSpqiT55xI+0gOL26Osgxt/g2xZlxHA==", | ||
"requires": { | ||
@@ -10,0 +10,0 @@ "@applitools/snippets": "2.1.7", |
@@ -6,2 +6,6 @@ # Change Log | ||
## 1.2.1 - 2021/9/10 | ||
- fix mocked scripts in MockDriver | ||
## 1.2.0 - 2021/9/9 | ||
@@ -8,0 +12,0 @@ |
{ | ||
"name": "@applitools/driver", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Applitools universal framework wrapper", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -145,6 +145,5 @@ const {inspect} = require('util') | ||
const elementId = ids[index] | ||
el.attributes = el.attributes || [] | ||
el.attributes.push({name: 'data-applitools-selector', value: elementId}) | ||
element.attributes = element.attributes || [] | ||
element.attributes.push({name: 'data-applitools-selector', value: elementId}) | ||
const selector = `[data-applitools-selector~="${elementId}"]` | ||
this.mockSelector(selector, element) | ||
selectors.push([selector]) | ||
@@ -162,2 +161,5 @@ } | ||
}) | ||
this.mockScript(snippets.getElementContentSize, ([element]) => { | ||
return element.rect || {x: 0, y: 0, width: 100, height: 100} | ||
}) | ||
this.mockScript(snippets.getDocumentSize, () => { | ||
@@ -164,0 +166,0 @@ // TODO get window for context: `this.contexts.get(this._contextId)` |
Sorry, the diff of this file is not supported yet
250440
4513