Agent skill

cypress

Cypress testing patterns, custom commands, component testing, and CI integration.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/cypress-a5c-ai-babysitter

SKILL.md

Cypress Skill

Expert assistance for E2E and component testing with Cypress.

Capabilities

  • Write E2E test scenarios
  • Create custom commands
  • Implement component testing
  • Configure CI pipelines
  • Handle authentication

Test Patterns

typescript
describe('User Authentication', () => {
  beforeEach(() => {
    cy.visit('/login');
  });

  it('should login successfully', () => {
    cy.get('[data-testid="email"]').type('[email protected]');
    cy.get('[data-testid="password"]').type('password123');
    cy.get('[data-testid="submit"]').click();
    cy.url().should('include', '/dashboard');
    cy.contains('Welcome').should('be.visible');
  });
});

Custom Commands

typescript
Cypress.Commands.add('login', (email, password) => {
  cy.session([email, password], () => {
    cy.visit('/login');
    cy.get('[data-testid="email"]').type(email);
    cy.get('[data-testid="password"]').type(password);
    cy.get('[data-testid="submit"]').click();
    cy.url().should('include', '/dashboard');
  });
});

Target Processes

  • e2e-testing
  • component-testing
  • ci-cd-setup

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results