Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
hermione-assert-view-extended
Advanced tools
Hermione plugin for extend assertView command. Inspired hermione-ignore.
npm i -D hermione-assert-view-extended
Set options for the plugin in your hermione config:
{
commands: {
before: function(name, selector, options) {
return this.browser.moveTo(0, 0);
},
after: function(name, selector, options) {
console.log(`Asserted view '${name}' for '${selector}' selector.`);
}
},
globalStyles: {
animationDisable: true,
ignoreElements: [
'.classname1'
],
invisibleElements: [
'.classname3'
],
hideElements: [
'.classname2'
],
customCSS: `
body {
background-color: red;
}
`
},
globalExecute: {
before: [
function(message) {
alert(message);
},
'Hello, world!'
],
after: function() {
alert('Bye bye!');
}
}
}
Option | Default | Description |
---|---|---|
commands | Hermione commands which will be called before/after call assertView in then() . | |
commands.before | Hermione commands which will be called before call assertView and first inner execute. | |
commands.after | Hermione commands which will be called after call assertView and last inner execute. | |
globalStyles | CSS injection appended in <head> before call assertView. It will be removed after call assertView. | |
globalStyles.animationDisable | false | Disable CSS animation (transition-duration: 0s , animation-duration: 0s , etc.). |
globalStyles.ignoreElements | Elements will be covered with black rect. | |
globalStyles.invisibleElements | Elements will be hidden with opacity: 0 . | |
globalStyles.hideElements | Elements will be hidden with display: none . | |
globalStyles.customCSS | Custom styles. | |
globalExecute | Scripts executed before/after call assertView in the inner execut with other manipulation. | |
globalExecute.before | JS function executed before call assertView. | |
globalExecute.after | JS function executed after call assertView. |
MIT
FAQs
Hermione plugin for extend assertView command.
The npm package hermione-assert-view-extended receives a total of 1 weekly downloads. As such, hermione-assert-view-extended popularity was classified as not popular.
We found that hermione-assert-view-extended demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.