Skip to content

Add jest-axe baseline accessibility tests for core components #1219

@KshitijShukla30

Description

@KshitijShukla30

While going through the codebase I noticed packages/react already has Jest and @testing-library/react set up but there are no accessibility checks anywhere. Since EmbeddedChat gets embedded into third-party apps, any a11y issues in core components become the host app's problem too.
jest-axe slots in cleanly on top of the existing setup — no major config changes needed.
What I'm proposing:

Add jest-axe as a dev dependency in packages/react
Extend Jest with toHaveNoViolations
Write baseline tests for ChatInput, MessageList, and Sidebar
Hook into existing CI so it runs on every PR

I already have this working locally. Happy to open a draft PR if this looks good.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions