@applitools/eyes.cypress
Advanced tools
Comparing version 1.5.14 to 1.5.15
{ | ||
"name": "@applitools/eyes.cypress", | ||
"version": "1.5.14", | ||
"version": "1.5.15", | ||
"main": "index.js", | ||
@@ -34,3 +34,3 @@ "license": "MIT", | ||
"@applitools/dom-capture": "^2.0.0", | ||
"@applitools/rendering-grid-client": "^1.0.8", | ||
"@applitools/rendering-grid-client": "^1.1.1", | ||
"body-parser": "1.18.2", | ||
@@ -37,0 +37,0 @@ "cors": "^2.8.4", |
@@ -25,3 +25,3 @@ /* global Cypress,cy,window */ | ||
checkWindow({resourceUrls, blobs, cdt, tag, sizeMode, domCapture}) { | ||
checkWindow({url, resourceUrls, blobs, cdt, tag, sizeMode, domCapture}) { | ||
const blobData = blobs.map(({url, type}) => ({url, type})); | ||
@@ -31,3 +31,3 @@ return Promise.all(blobs.map(EyesServer.putResource)).then(() => | ||
command: 'checkWindow', | ||
data: {resourceUrls, cdt, tag, sizeMode, blobData, domCapture}, | ||
data: {url, resourceUrls, cdt, tag, sizeMode, blobData, domCapture}, | ||
}), | ||
@@ -44,6 +44,3 @@ ); | ||
Cypress.log({name: 'Eyes: open'}); | ||
return cy.window({log: false}).then(win => { | ||
const openArgs = Object.assign({url: win.location.href}, args); | ||
return EyesServer.open(openArgs); | ||
}); | ||
return EyesServer.open(args); | ||
}); | ||
@@ -66,3 +63,11 @@ | ||
return extractResources(doc, win).then(({resourceUrls, blobs}) => | ||
EyesServer.checkWindow({resourceUrls, blobs, cdt, tag, sizeMode, domCapture}), | ||
EyesServer.checkWindow({ | ||
url: win.location.href, | ||
resourceUrls, | ||
blobs, | ||
cdt, | ||
tag, | ||
sizeMode, | ||
domCapture, | ||
}), | ||
); | ||
@@ -69,0 +74,0 @@ }), |
@@ -26,3 +26,3 @@ 'use strict'; | ||
checkWindow: async ({resourceUrls, cdt, tag, blobData = [], sizeMode, domCapture}) => { | ||
checkWindow: async ({url, resourceUrls, cdt, tag, blobData = [], sizeMode, domCapture}) => { | ||
if (!checkWindow) { | ||
@@ -37,3 +37,11 @@ throw new Error('Please call cy.eyesOpen() before calling cy.eyesCheckWindow()'); | ||
return await checkWindow({resourceUrls, resourceContents, cdt, tag, sizeMode, domCapture}); | ||
return await checkWindow({ | ||
url, | ||
resourceUrls, | ||
resourceContents, | ||
cdt, | ||
tag, | ||
sizeMode, | ||
domCapture, | ||
}); | ||
}, | ||
@@ -40,0 +48,0 @@ |
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
27915
461