{"id":28512188,"url":"https://github.com/etchteam/storybook-addon-a11y-interaction-tests","last_synced_at":"2026-03-02T05:01:48.682Z","repository":{"id":285545162,"uuid":"958509119","full_name":"etchteam/storybook-addon-a11y-interaction-tests","owner":"etchteam","description":"Storybook addon for accessibility interaction tests","archived":false,"fork":false,"pushed_at":"2025-08-04T10:52:53.000Z","size":617,"stargazers_count":1,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-04T14:30:41.994Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/etchteam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-01T10:07:54.000Z","updated_at":"2025-08-04T10:20:09.000Z","dependencies_parsed_at":"2025-04-01T10:51:28.563Z","dependency_job_id":"7d6a7c08-f9d6-4d85-a299-d7fe20361a15","html_url":"https://github.com/etchteam/storybook-addon-a11y-interaction-tests","commit_stats":null,"previous_names":["etchteam/storybook-addon-a11y-interaction-tests"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/etchteam/storybook-addon-a11y-interaction-tests","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etchteam%2Fstorybook-addon-a11y-interaction-tests","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etchteam%2Fstorybook-addon-a11y-interaction-tests/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etchteam%2Fstorybook-addon-a11y-interaction-tests/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etchteam%2Fstorybook-addon-a11y-interaction-tests/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/etchteam","download_url":"https://codeload.github.com/etchteam/storybook-addon-a11y-interaction-tests/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etchteam%2Fstorybook-addon-a11y-interaction-tests/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269447931,"owners_count":24418758,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-08T02:00:09.200Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-09T00:31:03.726Z","updated_at":"2026-03-02T05:01:43.663Z","avatar_url":"https://github.com/etchteam.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Storybook A11y Interaction Tests\n\nA collection of reusable accessibility interaction tests for common UI patterns that can be used in Storybook's test runner play functions.\n\n## Installation\n\n```bash\nnpm install --save-dev @etchteam/storybook-addon-a11y-interaction-tests\n# or\nyarn add -D @etchteam/storybook-addon-a11y-interaction-tests\n```\n\n## Usage\n\nThis addon provides a set of reusable accessibility interaction tests that you can use in your Storybook stories' play functions. The tests follow the [W3C ARIA Design Patterns](https://www.w3.org/WAI/ARIA/apg/patterns/) and test for proper ARIA roles, states, properties, and keyboard interactions.\n\n### Example Usage\n\n```tsx\nimport type { Meta, StoryObj } from '@storybook/react';\nimport { expect, userEvent } from '../utils/test-utils';\nimport { a11yButton } from '@etchteam/storybook-addon-a11y-interaction-tests';\n\nimport { Button } from './Button';\n\nconst meta: Meta\u003ctypeof Button\u003e = {\n  component: Button,\n  argTypes: {\n    // ... your argTypes\n  },\n};\n\nexport default meta;\ntype Story = StoryObj\u003ctypeof Button\u003e;\n\nexport const Primary: Story = {\n  args: {\n    label: 'Button',\n    primary: true,\n  },\n  play: async ({ canvasElement, step }) =\u003e {\n    // Run the a11y button tests\n    await a11yButton({\n      step,\n      canvasElement,\n      isDisabled: false,\n      isToggle: false,\n    });\n    \n    // Add any additional tests specific to your button component\n  },\n};\n\nexport const Disabled: Story = {\n  args: {\n    label: 'Disabled Button',\n    disabled: true,\n  },\n  play: async ({ canvasElement, step }) =\u003e {\n    await a11yButton({\n      step,\n      canvasElement,\n      isDisabled: true,\n    });\n  },\n};\n```\n\n### Using Multiple Test Patterns\n\nYou can use multiple accessibility tests for components that combine patterns:\n\n```tsx\nimport { a11yButton, a11yDisclosure } from '@etchteam/storybook-addon-a11y-interaction-tests';\n\n// ...\n\nexport const DisclosureButton: Story = {\n  args: {\n    // ...\n  },\n  play: async ({ canvasElement, step }) =\u003e {\n    // Test both button and disclosure aspects\n    await a11yButton({ step, canvasElement });\n    await a11yDisclosure({ step, canvasElement });\n  },\n};\n```\n\n### Available Tests\n\nThis addon includes tests for the following ARIA patterns:\n\n- `a11yAccordion` - Tests for accordion components\n- `a11yAlert` - Tests for alert components\n- `a11yAlertDialog` - Tests for alert dialog components\n- `a11yButton` - Tests for button components\n- `a11yCarousel` - Tests for carousel components\n- `a11yCheckbox` - Tests for checkbox components\n- `a11yCombobox` - Tests for combobox components\n- `a11yDisclosure` - Tests for disclosure components\n- `a11yLink` - Tests for link components\n- `a11yModal` - Tests for modal dialog components\n- `a11yRadio` - Tests for radio button components\n- `a11ySwitch` - Tests for switch components\n- `a11yTable` - Tests for table components\n- `a11yTabs` - Tests for tabs components\n\nEach test function accepts parameters specific to that component type.\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fetchteam%2Fstorybook-addon-a11y-interaction-tests","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fetchteam%2Fstorybook-addon-a11y-interaction-tests","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fetchteam%2Fstorybook-addon-a11y-interaction-tests/lists"}