-
Notifications
You must be signed in to change notification settings - Fork 156
Manual visual regression testing without Percy
Shixie edited this page Mar 30, 2021
·
1 revision
This method provides a way to compare the rendering of a component between two codebases, such as React and Web Component.
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.