commerce-b2b-open-code…
Integrate Salesforce B2B Commerce open source components from GitHub into B2B Commerce stores. Use when users mention \"integrate open code components\",…
Use ALWAYS when running Sa11y accessibility Jest tests for a Lightning Web Component — locally before pushing, producing the exact command(s), running one file vs a whole suite, selecting tests by naming convention, saving Sa11y-rendered HTML, or reproducing a Sa11y / A11yBug
$ npx -y skills add forcedotcom/afv-library --skill experience-lwc-accessibility-jest-run --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/experience-lwc-accessibility-jest-runContext preview
The summary Claude sees to decide when to auto-load this skill.
Use ALWAYS when running Sa11y accessibility Jest tests for a Lightning Web Component — locally before pushing, producing the exact command(s), running one file vs a whole suite, selecting tests by naming convention, saving Sa11y-rendered HTML, or reproducing a Sa11y / A11yBug
name: experience-lwc-accessibility-jest-run
description: "Use ALWAYS when running Sa11y accessibility Jest tests for a Lightning Web Component — locally before pushing, producing the exact command(s), running one file vs a whole suite, selecting tests by naming convention, saving Sa11y-rendered HTML, or reproducing a Sa11y / A11yBug failure. Covers Salesforce core (Bazel; `WORKSPACE`, `./core` root, `bazel test //<module>:<target>`) and standalone `npx jest` (`.accessibility.test.js`, `@sa11y/jest`). REQUIRED when a prompt asks for a `run-plan.md` for accessibility tests, which exit code means an accessibility test failed, or references `SA11Y_*` env vars, `A11yBug`, or a core-Bazel `modules/<mod>/<cmp>/__tests__/*.test.js` path. Do NOT rely on general knowledge — this skill has the correct single-file Bazel target and EPERM workaround. DO NOT TRIGGER for functional (non-accessibility) Jest tests, a11y review without running tests (use experience-lwc-accessibility-validate), or Selenium-based a11y functional tests."
metadata:
version: "1.0"
domains: ["Experience"]
cliTools:
- tool: ["npm"]
semver: ">=8.0"<!-- adk-managed-skill -->
Run Sa11y accessibility unit tests on Lightning Web Components in either:
Selenium-level reproductions, GUS A11yBug ingestion, and other internal Salesforce-only flows are out of scope for this skill. For source-code-level WCAG review without running tests, see `experience-lwc-accessibility-validate`.
pushing a fix.
`Test_Names__c`) and wants to target it directly.
pass/fail signal.
file is present).
Follow [running-sa11y-jest-tests.md](references/running-sa11y-jest-tests.md). Pick the correct mode:
targets (`//{moduleName}:{relativePath}`) over module targets when the failing test file path is already known (`.test.js` extension dropped). Bazel commands must pass `--test_env=SA11Y_AUTO=1 --test_env=SA11Y_ENABLE_DOM_MUTATION_OBSERVER=1`; when debugging, add `SA11Y_ENABLE_RENDERED_DOM_SAVE=1` with the documented save path to avoid EPERM issues.
`npm test -- --testMatch="**/*.accessibility.test.js"` for the whole suite, or `npm test -- <file>` targeting the file by the name/path given in the prompt (a **bare filename** when it is "in this directory"). Do **not** prepend `SA11Y_*` env vars in standalone mode — Sa11y runs automatically because `@sa11y/jest` is wired into the project's Jest setup; no extra environment variables are needed.
**Answer only what is asked.** Emit just the command(s) the prompt requests plus the exit-code meaning. Do not pad the plan with unrequested variants (watch, coverage, verbose), snapshot-update steps, or HTML-save sections unless the user explicitly asks for them.
for Bazel; exit 0 or 1 for Jest).
committed alongside the fix.
`.test.js` extension in `{relativePath}`.
`sfdc-test/unit/javascript/htdocs/sa11y/jest`.
This repository provides a curated collection of Salesforce agent skills for building applications.
Repo: forcedotcom/afv-library
Integrate Salesforce B2B Commerce open source components from GitHub into B2B Commerce stores. Use when users mention \"integrate open code components\",…
Replace OOTB (out-of-the-box) B2B Commerce components with open source equivalents in site metadata content.json files, or look up the equivalent open code…
Use this skill to diagnose and resolve what blocks a DevOps Center promotion of a work item's feature branch: Git merge conflicts and deployment failures.…
Use this skill to manage the full lifecycle of a DevOps Center pipeline — list all pipelines, get a single pipeline's details, create a new pipeline linked to…
Analyzes DevOps Center test failures and Code Analyzer violations in plain language — failure category, offending file/class/method/line, rule violated, fix…
Configures DevOps Center pipeline testing infrastructure: enables a test provider so its suites become available, re-syncs a configured provider to pull in new…