/orocommerce-skills:oro-behat-testingfrom orocommerce-skills
Use 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".
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.
Oro adds auto-discovered suites, elements over Mink, Alice fixtures, tag-driven mocking and per-scenario DB isolation. A bundle's assets live under Tests/Behat/.
Tests/Behat/behat.ymloro_behat_extension:
shared_contexts: [ ...\Context\OroMainContext ]
suites:
AcmeDemoBundle: # key = bundle name -> auto-discovered
contexts: [ ... ]
paths: [ '@AcmeDemoBundle/Tests/Behat/Features' ]
elements:
Demo Login Form: { selector: '#login-form', class: ...\Element\Form }
pages:
Demo Dashboard: { class: ...\Page\DemoDashboard, route: acme_demo_dashboard }
Element mapping, nested xpath and delegation: references/suite-config.md.
Auto-discovery applies when the suite key matches a registered bundle and paths points at @BundleName/… inside it. Otherwise — different name, several suites per bundle, odd paths — register manually with type: symfony_bundle plus bundle: (references/suite-config.md).
bin/behat prefers a gitignored local behat.yml over the committed .dist; never commit the local one. config/config_behat_test.yml is application config, active only with the @behat-test-env tag and --behat-test-env.
Alice fixtures sit in Tests/Behat/Features/Fixtures/, loaded by a feature tag: @fixture-OroUserBundle:user.yml. The colon is mandatory — without it nothing loads, silently. ?user=admin applies it under a security context. Four references need no fixture: @admin, @adminRole, @organization, @business_unit; custom ones via oro_behat.reference_repository_initializer (references/fixtures.md).
Oro's Jenkins pipeline runs:
bin/behat -vv -f pretty -o std -f junit -o var/logs/behat --strict \
--consumers=2 -s AcmeDemoBundle
The dual formatter is standard — pretty for humans, junit for CI; without it CI collects no results. --strict fails on undefined or pending steps; --consumers=2 runs the MQ consumer inside the Behat process, alongside any consumer container. Step discovery: -di with examples, -dl names only. Chrome flags and the test-DB oro:install: references/chrome-setup.md, references/v6.1.md.
Mocking an external API: declare candidates in Tests/Behat/parameters.yml, and oro_test.behat.feature_tag_aware_factory picks by tag — @use-paypal-mock gets the stub. Never hand-roll interception (references/feature-tag-mocking.md).
@fixture-file.yml without the bundle prefix — Alice loads nothing, silently; the scenario runs against an empty database and you chase missing-entity errors.shared_contexts on a new suite — without it the suite lacks OroMainContext, so "I login as admin" throws UndefinedStep at run time, not config time.references/suite-config.md).--skip-isolators-tag does not exist in 6.1 — the CLI rejects it (references/v6.1.md).references/: suite-config.md · fixtures.md · feature-tag-mocking.md · chrome-setup.md · v6.1.md · v7.0.md
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-debugging