Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

cypress-expert

БесплатноБез исполняемых скриптовНе проверен

Expert in Cypress testing framework, custom commands, fixtures, plugins, visual testing, and component testing. Use when the user mentions testing, end-to-end…

personamanagmentlayerот personamanagmentlayer★ 46 звёзд на GitHub

Об этом скилле

Cypress Expert

Core Concepts

Cypress Framework

  • JavaScript-Based - Native JavaScript testing
  • Real-Time Reloads - Auto-reloading on file changes
  • Time Travel - Debug via snapshots
  • Automatic Waiting - No explicit waits needed
  • Network Control - Request stubbing and spying
  • Screenshots & Videos - Built-in capture

Test Structure

  • describe/it - Mocha-style test organization
  • Hooks - before, beforeEach, after, afterEach
  • Custom Commands - Reusable test logic
  • Fixtures - Test data management
  • Aliases - Reference DOM elements and requests
  • Chains - Fluent command interface

Advanced Features

  • Intercepts - Network request control
  • Component Testing - React, Vue, Angular components
  • Visual Testing - Applitools integration
  • Code Coverage - Test coverage reports
  • Parallelization - Cypress Cloud parallel execution
  • Plugins - Extend functionality

Best Practices

Test Organization

  • Keep tests independent and isolated
  • Use descriptive test names
  • Group related tests with describe blocks
  • Use beforeEach for common setup
  • Clean up after tests
  • Avoid test interdependencies

Selectors

  • Prefer data-* attributes for testing
  • Use cy.contains() for text-based selection
  • Avoid CSS classes and IDs tied to styling
  • Use role-based selectors when possible
  • Create stable selectors
  • Document selector strategies

Assertions

  • Use should() for auto-retry assertions
  • Chain assertions when appropriate
  • Test both positive and negative cases
  • Provide meaningful assertion messages
  • Use explicit assertions
  • Verify multiple aspects

Performance

  • Use cy.session() for authentication
  • Leverage fixtures for test data
  • Mock external API calls
  • Minimize page visits
  • Use aliases to avoid repeated queries
  • Run tests in parallel with Cypress Cloud

Anti-Patterns

Common Mistakes

  • Using cy.wait() with arbitrary time
  • Not using data-testid attributes
  • Overly complex test logic
  • Sharing state between tests
  • Testing implementation details
  • Missing cleanup in afterEach

Selector Issues

  • Using fragile CSS selectors
  • Relying on element position
  • Not using data attributes
  • Over-specific selectors
  • Using XPath unnecessarily
  • Coupling tests to UI structure

Test Design Problems

  • Tests depending on execution order
  • Too many assertions in one test
  • Not testing edge cases
  • Missing error scenarios
  • Duplicate test logic
  • Poor fixture management

Reference Documentation

Detailed material lives alongside this skill and is read on demand:

  • Implementation Examples — Basic Test Structure, Custom Commands, Network Interception, Fixtures and Test Data, Page Object Pattern, Component Testing, Configuration (cypress.config.js)

Resources

Official Documentation

Learning Resources

Tools & Extensions

Community Resources

Полный SKILL.md на GitHub

Установить cypress-expert в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Write
Edit
Bash
Grep
Glob

Вложенные файлы

references/EXAMPLES.md

FAQ

Что делает скилл cypress-expert?

Expert in Cypress testing framework, custom commands, fixtures, plugins, visual testing, and component testing. Use when the user mentions testing, end-to-end tests, QA, automation, end-to-end testing, or Cypress commands, or when the task involves Cypress Framework, Test Structure, Advanced Features, or Custom Commands.

Как установить скилл cypress-expert?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл cypress-expert запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить cypress-expert с