Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
cypress-fill-command
Advanced tools
A fill command that fills inputs faster than the cypress native type command.
This package adds a custom Cypress command that fills inputs, textareas and content editable elements. The type command from cypress has 10ms delay, so it slows the tests a bit. This command doesn't have any delay at all.
The package is distributed via npm and should be installed as one of your project's devDependencies
:
npm install --save-dev cypress-fill-command
or
yarn add cypress-fill-command --dev
cypress-fill-command
extends Cypress' cy
command.
Add this line to your project's cypress/support/commands.js
:
import 'cypress-fill-command'
Now you are ready to use the command. Here is a basic example:
cy.get('#the-element-id').fill('Some text')
Exposed command in a nutshell:
cySubject.fill(text, options)
text
– The text to be filled into an inputOptions contains following properties:
overwrite
- To overwrite the input value. Defaults to true
prepend
- To insert before (true
) or after (false
) the current input value when overwrite
is false
. Defaults to false
It has been used on a React project with inputs controlled by React state.
I cannot guarantee it will work in any custom input, but we can try to improve it, just open an issue or a PR.
Thanks goes to these wonderful people (emoji key):
Steven Dorries 🤔 ⚠️ 💻 | Nathan Jones 💻 | André Muta 🤔 | Daniel Ferrari 🚇 📖 ⚠️ 💻 👀 | Dan Caseley 🤔 ⚠️ 💻 |
This project follows the all-contributors specification. Contributions of any kind welcome!
[1.0.2] - 2021-03-04
FAQs
A Cypress command for fill inputs
The npm package cypress-fill-command receives a total of 32,233 weekly downloads. As such, cypress-fill-command popularity was classified as popular.
We found that cypress-fill-command 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.