
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
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:
{
hooks: {
beforeEach: function(name, selector, options) {
return this.browser.moveTo(0, 0);
},
afterEach: function(name, selector, options) {
console.log(`Asserted view '${name}' for '${selector}' selector.`);
}
},
globalStyles: {
animationDisabled: true,
redraw: true,
// Elements will be covered with black rect.
ignoreElements: [
'.classname1'
],
// Elements will be hidden with `opacity: 0`.
invisibleElements: [
'.classname3'
],
// Elements will be hidden with `display: none`.
hideElements: [
'.classname2'
],
customCSS: `
body {
background-color: red;
}
`
}
}
Option | Default | Description |
---|---|---|
hooks | Hermione commands which will be called before/after call assertView in then() . | |
hooks.beforeEach | Hermione commands which will be called before call assertView and first inner execute. | |
hooks.afterEach | 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.animationDisabled | false | Disable CSS animation (transition-duration: 0s , animation-duration: 0s , etc.). |
globalStyles.redraw | false | Bowser redraw page after apply styles. |
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. |
MIT
FAQs
Hermione plugin for extend assertView command.
The npm package hermione-assert-view-extended receives a total of 3 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
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.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.