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

Move Chromatic to run on the vue-components package #141

Merged
merged 2 commits into from
Aug 13, 2020
Merged

Conversation

tzhelyazkova
Copy link
Contributor

Explore how component changes affect chromatic T257826

After enabling the UI Review and Visual Tests options on Chromatic, it became clear that they don't work on our composed Storybook, whose main stories are the design system tokens.
After discussing this with UX, we agreed that it's more important to leverage the features Chromatic offers on our vue components and not on our design tokens.

This PR moves chromatic from the docs package to the vue-components package.
➕ This means the per-branch generated Chromatic URLs will show only the vue components Storybook. It will enable us to run visual tests and use the UI Review feature.
➕ This also means the browser tests no longer need to make a difference between a composed storybook and a local vue components storybook.
➖ The downside is that any token changes cannot be previewed on Chromatic anymore. This can only happen locally.

We get more value from Chromatic if we run it only against the vue
Storybook, because then we can use the UI Review and UI Testing tools.
Copy link
Member

@jakobw jakobw left a comment

Choose a reason for hiding this comment

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

This does what we want it to do and nicely outlines the trade-offs we're making in the description. Awesome 💯

Made a tiny suggestion inline, otherwise it's good to go 🚀

Now that we have only the vue storybook on Chromatic
there is no need to determine which iframe is shown, because
it's always the same one.
@jakobw jakobw merged commit 3ceb7ea into master Aug 13, 2020
@jakobw jakobw deleted the vue_chromatic branch August 13, 2020 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants