Skip to content

Commit

Permalink
Fix screenshot generation and comparison
Browse files Browse the repository at this point in the history
Change-type: patch
Signed-off-by: Stevche Radevski <stevche@balena.io>
  • Loading branch information
sradevski committed Jun 24, 2019
1 parent 12522d3 commit 03b96f2
Show file tree
Hide file tree
Showing 123 changed files with 10 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .storybook/config.js
Expand Up @@ -13,11 +13,8 @@ const GlobalStyle = createGlobalStyle([], {
lineHeight: 1.5,
margin: 0,
fontFamily: theme.font,
height: '100%',
background: 'white'
},
html: {
height: '100%'
background: 'white',
webkitFontSmoothing: 'antialiased'
}
})

Expand Down
8 changes: 8 additions & 0 deletions .storybook/preview-head.html
Expand Up @@ -11,4 +11,12 @@
}, 50);
});
}

// hack to hide page viewport resolution on page (for screenshot purposes)
// See https://github.com/tsuyoshiwada/storybook-chrome-screenshot/issues/58
const $style = window.top.document.createElement('style');
$style.innerHTML = `iframe + div {
display: none !important;
}`;
window.top.document.body.appendChild($style);
</script>
Binary file modified __screenshots__/BetaForm-Custom-submit-button-text.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified __screenshots__/BetaForm-Extra-widgets.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified __screenshots__/BetaForm-Group-titles.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified __screenshots__/BetaForm-Help-Text.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified __screenshots__/BetaForm-Hidden-submit-button.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified __screenshots__/BetaForm-Preset-values.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified __screenshots__/BetaForm-Simple.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified __screenshots__/BetaForm-UI-schema.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified __screenshots__/BetaForm-Warnings.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified __screenshots__/BetaForm-patternProperties.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified __screenshots__/CoreAlert-Emphasized.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified __screenshots__/CoreAlert-Plaintext.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified __screenshots__/CoreAlert-Standard.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified __screenshots__/CoreArcSlider-Background-color.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified __screenshots__/CoreArcSlider-Change-handler.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified __screenshots__/CoreArcSlider-Fill-color.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified __screenshots__/CoreArcSlider-Label.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified __screenshots__/CoreArcSlider-Standard.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified __screenshots__/CoreBadge-Controlled.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified __screenshots__/CoreBadge-Small.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified __screenshots__/CoreBadge-Standard.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified __screenshots__/CoreBadge-Xsmall.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified __screenshots__/CoreBanner-BackgoundImage.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified __screenshots__/CoreBox-Standard.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified __screenshots__/CoreCard-Standard.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified __screenshots__/CoreCard-Title.png
Binary file modified __screenshots__/CoreCard-With-Header.png
Binary file modified __screenshots__/CoreCard-With-rows.png
Binary file modified __screenshots__/CoreContainer-Center-Text.png
Binary file modified __screenshots__/CoreContainer-Standard.png
Binary file modified __screenshots__/CoreDivider-Standard.png
Binary file modified __screenshots__/CoreFlex-Flex-direction.png
Binary file modified __screenshots__/CoreFlex-Flex-property-on-children.png
Binary file modified __screenshots__/CoreFlex-Flex-wrap.png
Binary file modified __screenshots__/CoreFlex-Justify.png
Binary file modified __screenshots__/CoreFlex-Standard.png
Binary file modified __screenshots__/CoreImg-Standard.png
Binary file modified __screenshots__/CoreInput-Emphasized.png
Binary file modified __screenshots__/CoreInput-Input-types.png
Binary file modified __screenshots__/CoreInput-Monospace.png
Binary file modified __screenshots__/CoreInput-Standard.png
Binary file modified __screenshots__/CoreNavbar-Standard.png
Binary file modified __screenshots__/CoreProgressBar-Emphasized.png
Binary file modified __screenshots__/CoreProgressBar-Standard.png
Binary file modified __screenshots__/CoreSearch-Dark.png
Binary file modified __screenshots__/CoreSearch-Disabled.png
Binary file modified __screenshots__/CoreSearch-Placeholder.png
Binary file modified __screenshots__/CoreSearch-Standard.png
Binary file modified __screenshots__/CoreSwatches-All.png
Binary file modified __screenshots__/CoreTable-Anchor-Rows-with-Checkboxes.png
Binary file modified __screenshots__/CoreTable-Anchor-Rows.png
Binary file modified __screenshots__/CoreTable-Checkboxes.png
Binary file modified __screenshots__/CoreTable-Conditional-classes.png
Binary file modified __screenshots__/CoreTable-Highlighted-rows.png
Binary file modified __screenshots__/CoreTable-Multiple-Row-Prefix.png
Binary file modified __screenshots__/CoreTable-Pager.png
Binary file modified __screenshots__/CoreTable-Row-Click.png
Binary file modified __screenshots__/CoreTable-Row-Prefix.png
Binary file modified __screenshots__/CoreTable-Standard.png
Binary file modified __screenshots__/CoreTable-Updating-data-in-a-table.png
Binary file modified __screenshots__/CoreTerminal-Non-interactive.png
Binary file modified __screenshots__/CoreTerminal-Persistent.png
Binary file modified __screenshots__/CoreTerminal-Standard.png
Binary file modified __screenshots__/CoreTextarea-AutoRows.png
Binary file modified __screenshots__/CoreTextarea-MaxRows.png
Binary file modified __screenshots__/CoreTextarea-MinRows.png
Binary file modified __screenshots__/CoreTextarea-Monospace.png
Binary file modified __screenshots__/CoreTextarea-Standard.png
Binary file modified __screenshots__/CoreTooltips-Click.png
Binary file modified __screenshots__/CoreTooltips-Standard.png
Binary file modified __screenshots__/CoreTooltips-Styled-tooltips.png
Binary file modified __screenshots__/CoreTooltips-Supported-Elements.png
Binary file modified __screenshots__/CoreTypography-Headings.png
Binary file modified __screenshots__/CoreTypography-Link.png
Binary file modified __screenshots__/CoreTypography-Txt.png
Binary file modified __screenshots__/ExtraMarkdown-Standard.png
Binary file modified __screenshots__/ExtraMermaid-Standard.png
Binary file modified __screenshots__/NextButton-Active.png
Binary file modified __screenshots__/NextButton-Disabled.png
Binary file modified __screenshots__/NextButton-Icon-only.png
Binary file modified __screenshots__/NextButton-Link.png
Binary file modified __screenshots__/NextButton-Outline.png
Binary file modified __screenshots__/NextButton-Plain.png
Binary file modified __screenshots__/NextButton-Standard.png
Binary file modified __screenshots__/NextButton-Underline.png
Binary file modified __screenshots__/NextButton-Width.png
Binary file modified __screenshots__/NextButton-With-icon.png
Binary file modified __screenshots__/NextButtonGroup-Standard.png
Binary file modified __screenshots__/NextCheckbox-Standard.png
Binary file modified __screenshots__/NextCheckbox-Toggle.png
Binary file modified __screenshots__/NextDropDownButton-Alignment.png
Binary file modified __screenshots__/NextDropDownButton-Bordered-List.png
Binary file modified __screenshots__/NextDropDownButton-Divider.png
Binary file modified __screenshots__/NextDropDownButton-Joined.png
Binary file modified __screenshots__/NextDropDownButton-No-List-Formatting.png
Binary file modified __screenshots__/NextDropDownButton-Only-Caret-Icon.png
Binary file modified __screenshots__/NextDropDownButton-Outline-+-Joined.png
Binary file modified __screenshots__/NextDropDownButton-Outline.png
Binary file modified __screenshots__/NextDropDownButton-Standard.png
Binary file modified __screenshots__/NextFilters-Button-props.png
Binary file modified __screenshots__/NextFilters-Dark.png
Binary file modified __screenshots__/NextFilters-Disabled.png
Binary file modified __screenshots__/NextFilters-Render-modes.png
Binary file modified __screenshots__/NextFilters-Standard.png
Binary file modified __screenshots__/NextModal-Nested-Modals.png
Binary file modified __screenshots__/NextModal-Open-Modal-Demo.png
Binary file modified __screenshots__/NextModal-Overflow.png
Binary file modified __screenshots__/NextModal-With-Tooltip.png
Binary file modified __screenshots__/NextPager-Standard.png
Binary file modified __screenshots__/NextRadioButton-Standard.png
Binary file modified __screenshots__/NextRadioButtonGroup-Standard.png
Binary file modified __screenshots__/NextSelect-Advanced.png
Binary file modified __screenshots__/NextSelect-Standard.png
Binary file modified __screenshots__/NextSelect-States.png
Binary file modified __screenshots__/NextTabs-Standard.png
Binary file modified __screenshots__/NextTextWithCopy-Code.png
Binary file modified __screenshots__/NextTextWithCopy-Inside-clickable-element.png
Binary file modified __screenshots__/NextTextWithCopy-Standard.png
Binary file modified __screenshots__/NextTextWithCopy-Wrapping-text.png
Binary file modified __screenshots__/ToolsJSON-Schema-Validator-Draft-6.png

0 comments on commit 03b96f2

Please sign in to comment.