
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
@netsells/cypress-commands
Advanced tools
Useful commands for testing accessibility issues in Cypress
yarn add --dev @netsells/cypress-commands
In support/commands.js
:
const { loadAccessibilityCommands } = require('@netsells/cypress-commands');
loadAccessibilityCommands();
In plugins/index.js
:
const { loadAccessibilityPlugins } = require('@netsells/cypress-commands');
module.exports = (on, config) => {
loadAccessibilityPlugins(on, config);
}
Assert a pages HTML is accessible using the PayPal AATT
// visit a page
cy.visit('/page');
// assert the page has finished loading
cy.contains('Page Title').should('be.visible');
// assert its accessibility
cy.checkAccessibility();
Get a field by via its label
cy.field('Password', field => field.type('Password'));
Use this to easily generate lots of accessibility tests for multiple URLs.
import { createAccessiblityTests } from '@netsells/cypress-commands';
createAccessiblityTests('/', 'gift-cards', 'login');
FAQs
Common CypressIO commands in Netsells projects
We found that @netsells/cypress-commands demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.