cypress-local
БесплатноБез исполняемых скриптовНе проверенRun and troubleshoot Cap Collectif Cypress E2E tests locally with the project's configured Node version and Chrome. Use when an AI needs to launch a Cypress…
от cap-collectif★ 27 звёзд на GitHubОб этом скилле
Cypress local
Quick start
Run the command from the same shell in which the project's Node version is selected and verified:
nvm use
corepack enable
node --version
cd cypress
yarn cy:run --browser chrome --spec e2e/path/to/test.cy.ts
The version check must match .nvmrc and satisfy the node requirement in package.json.
Do not use Electron: it is not available in the local setup.
Preconditions
- Docker services and the local application must be running at
https://capco.test. - The
capco.testhostname selects Symfonytest; noNEXT_PUBLIC_SYMFONY_ENVoverride is required. - Run
nvm usefrom the repository root before launching Cypress, then verifynode --versionin that same shell. - Use Yarn through Corepack; do not rely on a globally installed Yarn version.
Workflows
- One spec:
yarn cy:run --browser chrome --spec e2e/<path>/<name>.cy.ts. - Full E2E suite:
yarn cy:run --browser chrome. - Interactive runner:
yarn cy:open --browser chrome. db:restorerestores the local reference MySQL dump and Elasticsearch snapshot; Cypress does not overwrite them at startup. After changing the local database, prepare these references withcastor qa:regenerate-test-data --confirmbefore running Cypress. Do not skip the data preparation required by a suite that changes data.
When the page state depends on a GraphQL request, intercept the last required operation and wait
for its alias before asserting the DOM. Do not replace this network synchronization with a fixed
cy.wait(number). Fixed waits for other needs, such as animations or captcha completion, must
remain exceptional and justified according to the Cypress ADR.
Feature flags
- Suites declare their overrides with
setupFeatureFlagsfromcypress/support/setupFeatureFlags.ts, directly insidedescribe/context, before other hooks. - The shared support hooks apply the test preset and inherited overrides before every test/retry in one task, then restore the preset after every test, including failures. Do not configure flags in setup/cleanup hooks with individual enable/disable tasks.
- Nested suites may declare their own overrides; their flags merge with their parent's configuration without another Redis reset. Sibling overrides remain independent.
- Use
cy.setFeatureFlags({ calendar: false })for changes inside a scenario. Consecutive calls preserve earlier explicit overrides. Single-flag compatibility commands also use Redis. - All suites receive the preset, even without
setupFeatureFlags. MySQL, Elasticsearch and other Redis keys are outside this reset. - The backend validates names and boolean values before an atomic write. An invalid override must fail preparation; do not silence this error.
Troubleshooting
EPERMunder the Cypress cache or an immediate exit with code134: rerun with permission to access the local Cypress cache and browser, keeping the configured Node version and Chrome.- A selector failure: prefer accessible attributes or existing Cypress page objects, then add an explicit visibility assertion before clicking.
See the local Cypress guide for repository-specific commands and examples.
Установить cypress-local в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл cypress-local?
Run and troubleshoot Cap Collectif Cypress E2E tests locally with the project's configured Node version and Chrome. Use when an AI needs to launch a Cypress spec, prepare the local test environment, or diagnose a local Cypress startup failure.
Как установить скилл cypress-local?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл cypress-local запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic