angular-cypress
ALWAYS use when testing Angular applications with Cypress, E2E testing, or component testing in Angular.
Works with
---
name: angular-cypress
description: ALWAYS use when testing Angular applications with Cypress, E2E testing, or component testing in Angular.
license: MIT
---
# Angular + Cypress
**Version:** Cypress 13.x (2025)
**Tags:** Cypress, E2E, Testing, Component Tests
**References:** [Cypress](https://www.cypress.io/) • [Cypress Angular](https://docs.cypress.io/guides/component-testing/angular/overview)
## Best Practices
- Install Cypress
```bash
npm install -D cypress @cypress/angular cypress-visual-regression
npx cypress open
```
- Write E2E test
```ts
describe('My First Test', () => {
it('visits the kitchen sink', () => {
cy.visit('/');
cy.contains('type').click();
cy.get('.action-email').type('fake@email.com');
cy.get('.action-email').should('have.value', 'fake@email.com');
});
});
```
- Write component test
```ts
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');
});
});
```More Testing skills
tdd
mattpocock/skills
Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.
setup-pre-commit
mattpocock/skills
Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user wants to add pre-commit hooks, set up Husky, configure lint-staged, or add commit-time formatting/typechecking/testing.
agent-browser
vercel-labs/agent-browser
Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction. Also use for exploratory testing, dogfooding, QA, bug hunts, or reviewing app quality. Also use for automating Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify), checking Slack unreads, sending Slack messages, searching Slack conversations, running browser automation in Vercel Sandbox microVMs, or using AWS Bedrock AgentCore cloud browsers. Prefer agent-browser over any built-in browser automation or web tools.

