Comments (11)
There is a probably a straightforward way to integrate BackstopJS (similar to PhantomCSS but with a workflow & UI tuned for diff-ing many states and viewport sizes). If there is some interest I could look into it.
from storybook.
I am currently using https://github.com/Galooshi/happo for visual diffing React components
from storybook.
@wyattdanger Thanks. I saw you guys use it at AirBnb.
from storybook.
@wyattdanger have you managed to reuse react storybook stories with happo ?
from storybook.
Correct me if I am wrong but it looks like all the solutions linked so far use PhantomJs and therefore are suited for the CI integration. I am looking at slightly different use case - I would like to have an add-on that will add a panel with image diff for current story variant. I am looking at Resemble.js for that. Any advice / pointers / prior art / encouragements are welcome.
from storybook.
BackstopJS is a wrapper around resemble. It manages all the necessary resources for capturing screen shots, reporting and then displaying the diffs. You can call it like a node module as well. I am too busy to do the integration work but I'd happily guide you through it.
from storybook.
Storybook will not build visual regression testing, because there are tools that do it that integrate very nicely into Storybook.
See:
https://percy.io/docs/clients/javascript/react-storybook
https://screener.io/
from storybook.
These are both paid services for web as far as I understand them. I'm working on a solution that works locally for both web, ios and android.
from storybook.
Be sure to let us know about if when it's demo-able we can feature it on our documentation 👍
from storybook.
@oblador Give me a heads up if you need any testers/help with coding!
I looked at the suggestions @ndelangen but Percy seems very pricey, and screener will probably cost about the same.
from storybook.
@heinzmuller sure, DM me on twitter (@trastknast).
from storybook.
Related Issues (20)
- [Project SfC]: Integrate a new Icon in the manager's sidebar to trigger the "Generation of new Stories" flow
- [Bug]: vue compiler failed because props type reference to an imported type HOT 1
- [Bug]: next/fonts are not loaded in Storybook 8 using next/font/google or next/font/local
- [Bug]: Version "@storybook/addon-a11y": "6.5.16", not catching all accessibility issues HOT 5
- **Docs**: Add docs entry for module mocking in storybook using package.json imports
- Docs: Add recipe non standard based absolute imports such as `@/...` as in Next
- **Docs** Add docs for beforeEach
- Babel Configuration Not Applied to Storybook Stories[Bug]: HOT 1
- [Project SfC]: Implement a formatter to format new/edited files
- [Bug]: componente collapse with container-query in automated docs, mdx and storys at all HOT 1
- Mock next/navigation: redirect, revalidate, revalidatePath
- [Bug]: UI duplicate itself HOT 2
- [Bug]: HMR is broken for bundled CSS in Storybook v8
- [Bug]: `visual-tests-addon` Automigration script incorrectly lists package name in main.ts/js file HOT 2
- [Bug]: storybook V8.0.8 cli failed with Vue3+vite+yarn 4.1.1-workspace project[ Error: @chromatic-com/storybook tried to access @storybook/client-logger] HOT 1
- [Bug]: Cannot read properties of undefined (reading 'fonts') HOT 3
- [Bug]: Uncaught TypeError: Refresh.isLikelyComponentType is not a function HOT 3
- In @storybook/addon-docs react has been moved from peerDependencies to dependencies HOT 1
- [Bug]: Angular - Wrong detection of standalone components when inheriting
- RollupError: "X" is not exported by "../constants/dist/index.js", imported by "path/file.tsx".
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from storybook.