Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Github action for running Storybook tests #2160

Merged
merged 6 commits into from
Jun 17, 2024

Conversation

laurakwhit
Copy link
Contributor

@laurakwhit laurakwhit commented Jun 13, 2024

Description & motivation 💭

  • Adds ability to run Storybook tests with pnpm stories:test
  • Adds Storybook tests to Github workflows
  • Fixes pnpm test:coverage

Screenshots (if applicable) 📸

Design Considerations 🎨

Testing 🧪

How was this tested 👻

  • Manual testing
  • E2E tests added
  • Unit tests added

Steps for others to test: 🚶🏽‍♂️🚶🏽‍♀️

Checklists

Draft Checklist

Merge Checklist

Issue(s) closed

DT-2155

Docs

Any docs updates needed?

Copy link

vercel bot commented Jun 13, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
holocene ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 14, 2024 9:44pm

@laurakwhit laurakwhit marked this pull request as ready for review June 14, 2024 21:44
@laurakwhit laurakwhit requested review from stevekinney, rossedfort and a team as code owners June 14, 2024 21:44
Comment on lines +12 to +13
- name: Install Playwright
run: pnpm exec playwright install --with-deps
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm curious why we need to install the Playwright browsers for the Storybook tests 🤔

Copy link
Contributor Author

@laurakwhit laurakwhit Jun 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test-runner uses Playwright and I assume for visual tests they are being run in the browser. I followed the example here.

@laurakwhit laurakwhit merged commit 61ea6fe into main Jun 17, 2024
11 checks passed
@laurakwhit laurakwhit deleted the DT-2155-run-storybook-tests branch June 17, 2024 17:38
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