
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@interactor/percy
Advanced tools
Take Percy snapshots with Interactor.js.
First, install interactor.js
and @interactor/percy
:
$ yarn add --dev interactor.js @interactor/percy
Then import and use it in your interactors and tests:
import interactor from 'interactor.js';
import percySnapshot from '@interactor/percy';
// with a custom interactor
@interactor class PageInteractor {
// ...as an action without args
snapshot = percySnapshot('My Page');
// ...or accept and merge other args
snapshot(title, options) {
return percySnapshot(`My Page - ${title}`, options);
}
}
// ...
await new PageInteractor()
.assert.exists('.page-selector')
.snapshot('Initial page load')
// use the action directly without custom interactors
await percySnapshot('My Snapshot');
Finally, make sure to run your tests with your PERCY_TOKEN
using the percy exec
command:
$ export PERCY_TOKEN=<your token here>
$ yarn percy exec -- yarn test
percySnapshot(snapshotName, options)
snapshotName
: a required string that will be used as the snapshot
name. It can be any string that makes sense to identify the page state. It
should be unique and remain the same across builds.
options
: an optional hash that can include:
widths
: an array of integers representing the browser widths at which
you want to take snapshots.minHeight
: an integer specifying the minimum height of the resulting
snapshot, in pixels. Defaults to 1024px.[0.2.2] - 2019-08-26
minHeight
option not being passed to agentFAQs
Take Percy snapshots with Interactor.js
The npm package @interactor/percy receives a total of 7 weekly downloads. As such, @interactor/percy popularity was classified as not popular.
We found that @interactor/percy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.