@applitools/eyes.cypress
Advanced tools
Comparing version 3.3.23 to 3.3.24
v3.3.23 / 2019-01-28 | ||
==================== | ||
* 3.3.23 | ||
* Renamed git repo from eyes.cypress to eyes-cypress | ||
* returned eslint to babylon | ||
* updated changelog and vhangelog command | ||
* updated changelog (and doing changelog cmd without jq) | ||
v3.3.22 / 2019-01-20 | ||
@@ -3,0 +12,0 @@ ==================== |
{ | ||
"name": "@applitools/eyes.cypress", | ||
"version": "3.3.23", | ||
"version": "3.3.24", | ||
"main": "index.js", | ||
@@ -39,2 +39,3 @@ "license": "MIT", | ||
"@applitools/eyes-common": "^1.2.0", | ||
"@applitools/eyes-sdk-core": "^4.6.4", | ||
"@applitools/functional-commons": "^1.0.33", | ||
@@ -41,0 +42,0 @@ "@applitools/visual-grid-client": "^10.0.2", |
@@ -298,3 +298,2 @@ # Eyes.Cypress | ||
| `ignoreCaret` | false | Whether to ignore or the blinking caret or not when comparing images. | | ||
| `isDisabled` | false | If true, all calls to Eyes.Cypress commandswill be silently ignored. | | ||
| `matchLevel` | undefined | The method to use when comparing two screenshots, which expresses the extent to which the two images are expected to match. Possible values are `Strict`, `Exact`, `Layout` and `Content`. Read more about match levels [here](http://support.applitools.com/customer/portal/articles/2088359). | | ||
@@ -319,2 +318,5 @@ | `matchTimeout` | undefined | Sets the maximum time (in ms) a match operation tries to perform a match. | | ||
| `proxy` | undefined | Sets the proxy settings to be used in network requests to Eyes server. This can be either a string to the proxy URI, or an object containing the URI, username and password.<br/><br/>For example:<br/>`{uri: 'https://myproxy', username: 'my_user', password: 'my_password'}`| | ||
| `isDisabled` | false | If true, all calls to Eyes.Cypress commands will be silently ignored. | | ||
| `dontFailOnDiff` | false | If true, Cypress will not fail once an eyes visual test fails. | | ||
| `tapFilePath` | undefined | Dir path of a results file. If set then a tap file with the test results would be saved to this location.| | ||
@@ -321,0 +323,0 @@ ### Method 1: Arguments for `cy.eyesOpen` |
@@ -22,3 +22,9 @@ /* global Cypress,cy,window,before,after */ | ||
after(() => { | ||
cy.then({timeout: 86400000}, () => batchEnd({timeout: Cypress.config('eyesTimeout')})); | ||
cy.then({timeout: 86400000}, () => { | ||
return batchEnd({timeout: Cypress.config('eyesTimeout')}).catch(e => { | ||
if (!Cypress.config('eyesDontFailOnDiff')) { | ||
throw e; | ||
} | ||
}); | ||
}); | ||
}); | ||
@@ -25,0 +31,0 @@ } |
@@ -5,2 +5,3 @@ 'use strict'; | ||
const makeWaitForBatch = require('./waitForBatch'); | ||
const makeHandleBatchResultsFile = require('./makeHandleBatchResultsFile'); | ||
@@ -55,2 +56,3 @@ const TIMEOUT_MSG = timeout => | ||
errorDigest, | ||
handleBatchResultsFile: makeHandleBatchResultsFile(config), | ||
}); | ||
@@ -57,0 +59,0 @@ pollBatchEnd = pollingHandler(() => waitForBatch(runningTests), TIMEOUT_MSG); |
@@ -12,3 +12,7 @@ 'use strict'; | ||
const moduleExportsResult = await pluginModuleExports(...args); | ||
return Object.assign({eyesPort, eyesIsDisabled: !!config.isDisabled}, moduleExportsResult); | ||
const eyesConfig = { | ||
eyesIsDisabled: !!config.isDisabled, | ||
eyesDontFailOnDiff: !!config.dontFailOnDiff, | ||
}; | ||
return Object.assign(eyesConfig, {eyesPort}, moduleExportsResult); | ||
}; | ||
@@ -15,0 +19,0 @@ return function getCloseServer() { |
@@ -14,3 +14,7 @@ 'use strict'; | ||
const makeHandlers = require('./handlers'); | ||
const config = Object.assign({concurrency: 1, agentId}, ConfigUtils.getConfig({configParams})); | ||
const config = Object.assign( | ||
{concurrency: 1, agentId}, | ||
ConfigUtils.getConfig({configParams: [...configParams, 'dontFailOnDiff', 'tapFilePath']}), | ||
); | ||
const logger = new Logger(config.showLogs); | ||
@@ -17,0 +21,0 @@ const handlers = makeHandlers({ |
@@ -11,2 +11,3 @@ 'use strict'; | ||
errorDigest, | ||
handleBatchResultsFile, | ||
}) { | ||
@@ -17,4 +18,4 @@ return async function(runningTests) { | ||
const testResultsArr = flatten(await processCloseAndAbort(runningTests)); | ||
const {failed, diffs, passed} = getErrorsAndDiffs(testResultsArr); | ||
await handleBatchResultsFile(testResultsArr); | ||
@@ -21,0 +22,0 @@ if (concurrency == 1) { |
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
86730
37
769
439
10
5