Skip to content
Snippets Groups Projects
Verified Commit 6b339ba7 authored by Kushal Pandya's avatar Kushal Pandya Committed by Luke Bennett
Browse files

Merge branch '91-loading-icon-visual-diff-fails-on-master' into 'master'

Resolve "Loading icon visual diff fails on master"

Closes #91

See merge request gitlab-ui!79
parent e57b260f
No related branches found
No related tags found
No related merge requests found
* {
-o-transition: none !important;
-moz-transition: none !important;
-ms-transition: none !important;
-webkit-transition: none !important;
transition: none !important;
-webkit-animation: none !important;
-moz-animation: none !important;
-o-animation: none !important;
-ms-animation: none !important;
animation: none !important;
}
import initStoryshots from '@storybook/addon-storyshots';
import { imageSnapshot } from '@storybook/addon-storyshots-puppeteer';
const beforeScreenshot = (page) => {
page.addStyleTag({ path: 'tests/storyshots.css' });
const beforeScreenshot = page => {
// Fixing the Animation by inlining, previous approach with external file was flaky for the animation
page.addStyleTag({
content: `
* {
-webkit-transition: none !important;
-moz-transition: none !important;
-ms-transition: none !important;
-o-transition: none !important;
transition: none !important;
-webkit-animation: none !important;
-moz-animation: none !important;
-ms-animation: none !important;
-o-animation: none !important;
animation: none !important;
}
`,
});
};
const getGotoOptions = () => ({
waitUntil: 'networkidle0',
});
initStoryshots({
suite: 'Image storyshots',
test: imageSnapshot({
storybookUrl: `file:///${__dirname}/../storybook`,
beforeScreenshot,
getGotoOptions,
}),
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment