/orocommerce-skills:oro-behat-debuggingfrom orocommerce-skills
Use when a Behat scenario in Oro Commerce 6.1 fails, hangs or flakes — element not found, intermittent runs, AJAX races, waitForAjax with fetch/XHR, step discovery (`-dl`/`-di`), snippets, verbosity, ScreenshotTrait, `And I wait for action` blocking CI, var/log forensics for hidden 500s, Xdebug across split CLI + PHP-FPM. Also without the word "behat": step definitions, feature files, Mink, Gherkin.
Ships in orocommerce-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Cheapest signal first; most failures resolve at steps 1-3.
var/log/<env>.log — "element not found" is often a 500. The cause is in the server log, not the Behat trace.-v / -vv / -vvv — matched step definition, then hook execution, then the full matcher trace. One level at a time.And I take screenshot (ScreenshotTrait captures the cursor, unless an alert shows); dump($variable) inside a Context.
@Then I dump X for :arg that queries every candidate and throws the combined state: references/breadth-first-diagnostics.md.--stop-on-failure — tight loop on a single failing scenario.references/ajax-flake.md. And I wait is not a fix.The part the Oro docs gloss over. Runner and application are two PHP processes: bin/behat holds Contexts, steps, elements, fixtures; PHP-FPM holds controllers, services, listeners. Xdebug on one misses everything on the other — two targets, two ports.
CLI attaches via XDEBUG_MODE=debug XDEBUG_SESSION=1 php bin/behat …; FPM only when the browser session carries the XDEBUG_SESSION cookie, set from a @BeforeScenario hook. Snippets, path mapping, silent failures: references/xdebug-split.md.
Don't guess step wording; list it, and generate skeletons rather than writing them:
php bin/behat -dl -s OroUserBundle # names only
php bin/behat -di -s OroUserBundle # names + descriptions + examples
php bin/behat path/to/your.feature --dry-run --append-snippets --snippets-type=regex
Tag filtering and the verbosity progression: references/step-discovery.md.
waitForAjax on non-jQuery requests. It tracks only jQuery-registered XHR, so native fetch() and raw XMLHttpRequest never enter its queue and it returns while the request is in flight. Wait for an observable DOM state instead.And I wait for action. It blocks on stdin until you press return — fine locally, but CI hangs until timeout. A pre-commit grep pays for itself.In references/: xdebug-split.md · step-discovery.md · ajax-flake.md · breadth-first-diagnostics.md · performance-tmpfs.md (PostgreSQL in tmpfs) · v6.1.md · v7.0.md
Writing tests: oro-behat-testing. Remote/staging: oro-e2e-testing. Upstream: Oro Debug Behat Tests
references/ajax-flake.md (opens in a new tab)references/breadth-first-diagnostics.md (opens in a new tab)references/performance-tmpfs.md (opens in a new tab)references/step-discovery.md (opens in a new tab)references/v6.1.md (opens in a new tab)references/v7.0.md (opens in a new tab)references/xdebug-split.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
orocommerce@netresearch-claude-code-marketplace is listed by netresearch/claude-code-marketplace — review the source before installing
npx claudepluginhub netresearch/claude-code-marketplace --plugin orocommerce14 skills in this plugin
/oro-apiUse when exposing OroCommerce v6.1 entities via REST API, configuring api.yml or api_frontend.yml, creating custom API processors, setting up filters/sorters/subresources, or working with JSON:API endpoints. Relevant when the user mentions 'API endpoint', 'expose entity via API', 'api.yml', 'REST API', 'JSON:API', 'storefront API', or 'API processor'./oro-behat-ciUse when running Oro Commerce 6.1 Behat tests in CI/CD — Jenkins (Oro's canonical platform), GitLab CI (community territory per oroinc/platform#954), or any Docker pipeline. Covers compose fanout, headless Chrome, the formatter combo, consumer parallelisation maths, artifacts and init-image state transfer. Also on sight of .gitlab-ci.yml, Jenkinsfile, compose behat stages, compose-common.yaml. Triggers on 'behat ci', 'gitlab ci oro', 'jenkins oro', 'parallel behat', 'chrome headless', 'init-test image', 'behat hang'./oro-behat-testingUse when writing, configuring or running Behat integration tests for Oro Commerce 6.1 bundles against a LOCAL app — suites, contexts, elements, page objects, Alice fixtures, `bin/behat`. Covers auto-discovery vs `symfony_bundle` registration, `shared_contexts`, `behat.yml.dist` vs `behat.yml`, `--strict`/`--consumers`/`-s`, `@fixture-Bundle:file.yml`, `oro_behat_extension`, `OroMainContext`, feature-tag mocking, `config_behat_test.yml`, Mink, ChromeDriver, isolators. Triggers on "suite shows 0 features", "element not found", "step undefined", "fixture not loading"./oro-bundleUse when creating a new OroCommerce v6.1 bundle, registering bundles, setting up DependencyInjection extensions, configuring services.yml, adding translations, navigation menus, or system configuration. Also relevant for bundle-level boilerplate like compiler passes, event subscriber registration, and console commands. Also applies to 'create a bundle', 'scaffold', or 'new Oro module'./oro-datagridUse when creating new OroCommerce v6.1 datagrids, adding columns to existing grids, configuring filters, sorters, actions, mass actions, inline editing, or extending core grids (like product-grid, order-grid, customer-grid). Relevant when the user mentions 'create a grid', 'add column', 'grid filter', 'datagrid', 'data table', 'list view', or grid customization in OroCommerce./oro-e2e-testingUse when running Behat against a DEPLOYED Oro Commerce 6.1 application (staging, QA, prod-clone, prod) rather than a local dev/CI stack: --skip-isolators and --skip-isolators-but-load-fixtures, ORO_DB_DSN placement (.app-env.local vs .env-app.test.local), matching local migrations to the deployed tag, oro/e2e-tests, .behat-secrets.yml and Secret placeholders, ChromeDriver url-base/port and Mink 404s, watch mode, Reload Page and OpenAI Healers, HealerInterface with the oro_test.behat.healer tag. Skip for local-only Behat, PHPUnit, k6, or CI on ephemeral containers.