Skip to content

test: add Playwright coverage for docs and Accordion - #7

Closed
JoaoTMDias wants to merge 7 commits into
michael-andreuzza:mainfrom
JoaoTMDias:chore/setup-testing
Closed

JoaoTMDias wants to merge 7 commits into
michael-andreuzza:mainfrom
JoaoTMDias:chore/setup-testing

Conversation

@JoaoTMDias

@JoaoTMDias JoaoTMDias commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Closes #6

What changes

Adds Playwright tests that run against the component documentation.

  • Adds a basic homepage test.
  • Uses axe to check the documentation for accessibility issues.
  • Adds the componentPreview fixture to test the different component configurations shown in the documentation.
  • Adds Accordion tests covering:
    • WAI-ARIA structure and relationships;
    • Enter and Space keyboard interaction;
    • single and multiple modes;
    • accessibility checks in both light and dark themes.
  • Adds a GitHub Action that runs the E2E tests on every push and pull_request.

The axe check found contrast violations in the documentation. The homepage accessibility test is temporarily skipped while those issues are addressed.

This provides the base for adding coverage to the remaining components and pages.

@michael-andreuzza

Copy link
Copy Markdown
Owner

Thanks for putting this together, it's clean work. As I mentioned on #6, I've decided not to add a test suite or CI to Bearnie, so I'm going to close this. Sorry you went ahead before I replied there, that's on me for the slow response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Discuss testing strategy for Bearnie components and packages

2 participants