Manual visual regression testing without Percy - carbon-design-system/carbon-for-ibm-dotcom GitHub Wiki
Introduction
This method provides a way to compare the rendering of a component between two codebases, such as React and Web Component.
Mac OS X
In this step-by-step, we will use the locale modal components in React and Web Components.
- Open a new browser window.
- Open the given component in the storybook for one codebase, such as React.
- Open a new tab.
- Open the given component in the storybook for the other codebase, such as Web Components.
- Press
Command + Shift + 4 + Space
to activate the window screen capture mode. - Screen capture one codebase rendering.
- Repeat this last step for the other codebase.
- Overlay both screenshots in a single Sketch file.
- Set the blending mode of the top one to
Difference
. - See the parts that show up white-they represent visual differences.