
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@manychat/hermione-verify-screenshot
Advanced tools
Screenshot comparing plugin for hermione
Screenshot comparing plugin for Hermione
hermione.conf.js
:plugins : {
'verify-screenshot' : {
testBasePath : '/func-test/tests',
referencePath : '/func-test/screenshots',
unmatchedPath : '/func-test/screenshots-unmatched',
diffPath : '/func-test/screenshots-diff'
}
}
testBasePath
is a path under which your test suites are stored.
referencePath
is a path under which reference screenshots would be stored.
unmatchedPath
is a path under which you will find image when screenshots do not match to reference.
diffPath
is a path under which you will find image diffs when screenshots do not match to reference.
verifyScreenshot
command in your tests. It takes anything that should be shot (a x-y-width-height dimension set, a selector, or nothing meaning full window), and an arbitrary string (actually, a file name of screenshot).it('should look like we want it', function() {
return this.browser
.verifyScreenshot(50, 50, 100, 100, '100-by-100-square')
.verifyScreenshot(50, 50, 100, 100, '100-by-100-square', {
excludes: [{
selector: '.exclude-node'
}]
})
.verifyScreenshot('#selector', 'selector', {
excludes: [{
selector: '.exclude-node'
}]
})
.verifyScreenshot('full-browser-window', {
excludes: [{
selector: '.exclude-node'
}]
})
.verifyScreenshot('#selector', 'selector', {
excludes: [{
selector: '.exclude-node',
color: '#0000ff'
}, {
selector: '.another-exclude-node-to-fill' // default color is #ff0000
}]
});
})
referencePath
folder. The file structure mimics structure of tests. So, if test suite is at {testBasePath}/some/dir/my-test.js
, screenshots from it will be stored at {referencePath}/some/dir/my-test/{screenshot name}.{browser}.png
. Then you might want to manually test whether screenshots are good.FAQs
Screenshot comparing plugin for hermione
We found that @manychat/hermione-verify-screenshot demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.