Forum

Forum
Does Imagium suppor...
 
Notifications
Clear all

[Closed] Does Imagium support storybook testing?

New Member Guest
Joined: 3 years ago
Posts: 1
Topic starter  

We are using story book to design our react application. Is it possible to do storybook testing with Imagium?


   
Amrita Kaur
Member Admin
Joined: 3 years ago
Posts: 107
 

Yes, Visual Testing for storybook is definitely possible using Imagium. (We don't have the sample code ready, lets ask the larger community to share)

Here is the concept.

  • Use addon-storyshots-puppeteer to extract image from storybook (This will run using chrome headless)
  • Store the extracted image and convert into base64 
  • Hit Imagium with this base64 image

Will have the sample soon.

This post was modified 3 years ago by admin

   
Amrita Kaur
Member Admin
Joined: 3 years ago
Posts: 107
 

Storybook is amazing!

Here is how you can integrate storybook with Imagium https://imagium.io/knowledge-base/13-storybook-integration-for-component-testing/