
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.
cypress-plugin-steps
Advanced tools
A small Cypress helper that adds your test steps to the timeline and error logs.
Install this package:
npm i cypress-plugin-steps
# or
yarn add cypress-plugin-steps
Import the plugin into your cypress/support/e2e.js
file:
import 'cypress-plugin-steps'
// or
require('cypress-plugin-steps')
In most cases, types work just by installing plugin, but you can add the types to your tsconfig.json
{
"types": ["cypress-plugin-steps"]
}
This will add types for cy.step()
and cy.section()
command.
This will add two new commands to your Cypress library: cy.step()
and cy.section()
See the details below
This works similarly to cy.log()
command, but in addition, will add numbering to your tests:
it('numbers test steps', () => {
cy.step('open a page')
cy.visit('cypress/index.html')
cy.step('find all primary colors')
cy.get('.primary')
cy.step('select blue')
cy.get('.blue')
});
If your test fails, your scenario will be added to the error message. This way your scenario will be visible right on the error screenshot that Cypress does automatically:
You can also see the scenario in terminal:
Works similarly to cy.step()
but will be more prominent in Cypress runner (adding '---' to the log message) and will reset counter. This way you can divide your test into multiple secions.
cy.log()
to cy.step()
commandsYou can find and replace all your cy.log()
commands by matching the word log
with following regex:
(?:cy\s*)?log\s*
...powered by coffee and love ❤️ Filip Hric
FAQs
Add steps to your tests
The npm package cypress-plugin-steps receives a total of 46,219 weekly downloads. As such, cypress-plugin-steps popularity was classified as popular.
We found that cypress-plugin-steps 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
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.