Skip to content

adding in browser tests#492

Open
flacoman91 wants to merge 1 commit intomainfrom
storybook-vitest
Open

adding in browser tests#492
flacoman91 wants to merge 1 commit intomainfrom
storybook-vitest

Conversation

@flacoman91
Copy link
Collaborator

@flacoman91 flacoman91 commented Feb 10, 2026

Since we have Storybook 10 now, we can do more with it.

I'm not sure if it actually works in the PR preview, but it would be cool if it did!

This PR updates the config to allow in browser tests with vitest and accessibility a11y as well.

yarn install
yarn start

At the bottom left of the browser, just click run tests and you should see them running

Screenshot 2026-02-10 at 3 07 13 PM

@github-actions
Copy link

PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://cfpb.github.io/design-system-react/pr-previews/pr-492/

Built to branch gh-pages at 2026-02-10 23:08 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@anselmbradford
Copy link
Member

Neat! But do we have to use Playwright for this, or could we use Cypress? We should probably aim toward having DS/DSR converge with their tech stack as opposed to diverging. Alternatively, we could move the DS to Playwright, though I did explore this back in '23 and ultimately went with Cypress cfpb/design-system#1617

@flacoman91
Copy link
Collaborator Author

I can investigate using cypress. We use cypress in ccdb and CE too

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.

2 participants