@oguzhan18/angular-cypress

ALWAYS use when testing Angular applications with Cypress, E2E testing, or component testing in Angular.

View in AI SkillSafe app
Scanned · no findings
0 downloads
0 stars
0 demos
SKILL.md
nameangular-cypress
descriptionALWAYS use when testing Angular applications with Cypress, E2E testing, or component testing in Angular.

Angular + Cypress

Version: Cypress 13.x (2025) Tags: Cypress, E2E, Testing, Component Tests

References: CypressCypress Angular

Best Practices

  • Install Cypress
npm install -D cypress @cypress/angular cypress-visual-regression
npx cypress open
  • Write E2E test
describe('My First Test', () => {
  it('visits the kitchen sink', () => {
    cy.visit('/');
    cy.contains('type').click();
    cy.get('.action-email').type('[email protected]');
    cy.get('.action-email').should('have.value', '[email protected]');
  });
});
  • Write component test
import { mount } from 'cypress/angular';
import { ButtonComponent } from './button.component';

describe('ButtonComponent', () => {
  it('renders button with text', () => {
    mount(ButtonComponent, { 
      componentProperties: { 
        label: 'Click me' 
      } 
    });
    cy.get('button').should('contain.text', 'Click me');
  });
});

Embed badges

Add these to your README to show the skill's verification status.

SkillSafe verified badge
Verified badge
[![SkillSafe verified badge](https://api.skillsafe.ai/v1/badge/@oguzhan18/angular-cypress/verified)](https://skillsafe.ai/skill/@oguzhan18/angular-cypress/)
Installs badge
Installs badge
[![Installs badge](https://api.skillsafe.ai/v1/badge/@oguzhan18/angular-cypress/installs)](https://skillsafe.ai/skill/@oguzhan18/angular-cypress/)
Scan badge
Scan badge
[![Scan badge](https://api.skillsafe.ai/v1/badge/@oguzhan18/angular-cypress/scan)](https://skillsafe.ai/skill/@oguzhan18/angular-cypress/)
Eval pass rate badge
Eval pass rate
[![Eval pass rate badge](https://api.skillsafe.ai/v1/badge/@oguzhan18/angular-cypress/eval)](https://skillsafe.ai/skill/@oguzhan18/angular-cypress/)