-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3102 from thomasbertet/feat-storyshots-screenshot…
…s-options fix screenshots tests & add getScreenshotOption to storyshots
- Loading branch information
Showing
125 changed files
with
124 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file removed
BIN
-3.29 KB
...ts__/storyshots-image-runner-js-image-snapshots-addon-a-11-y-default-1-snap.png
Binary file not shown.
Binary file removed
BIN
-6.03 KB
...s__/storyshots-image-runner-js-image-snapshots-addon-a-11-y-disabled-1-snap.png
Binary file not shown.
Binary file removed
BIN
-3.24 KB
...yshots-image-runner-js-image-snapshots-addon-a-11-y-invalid-contrast-1-snap.png
Binary file not shown.
Binary file removed
BIN
-6.15 KB
...hots__/storyshots-image-runner-js-image-snapshots-addon-a-11-y-label-1-snap.png
Binary file not shown.
Binary file removed
BIN
-18.9 KB
..._/storyshots-image-runner-js-image-snapshots-addon-actions-all-types-1-snap.png
Binary file not shown.
Binary file removed
BIN
-5.65 KB
...shots-image-runner-js-image-snapshots-addon-actions-circular-payload-1-snap.png
Binary file not shown.
Binary file removed
BIN
-5.31 KB
...shots-image-runner-js-image-snapshots-addon-actions-decorated-action-1-snap.png
Binary file not shown.
Binary file removed
BIN
-5.72 KB
...oryshots-image-runner-js-image-snapshots-addon-actions-function-name-1-snap.png
Binary file not shown.
Binary file removed
BIN
-4.87 KB
...storyshots-image-runner-js-image-snapshots-addon-actions-hello-world-1-snap.png
Binary file not shown.
Binary file removed
BIN
-4.46 KB
...age-runner-js-image-snapshots-addon-actions-reserved-keyword-as-name-1-snap.png
Binary file not shown.
Binary file removed
BIN
-8.39 KB
...storyshots-image-runner-js-image-snapshots-addon-backgrounds-story-1-1-snap.png
Binary file not shown.
Binary file removed
BIN
-4.7 KB
...storyshots-image-runner-js-image-snapshots-addon-backgrounds-story-2-1-snap.png
Binary file not shown.
Binary file removed
BIN
-6.05 KB
...ots__/storyshots-image-runner-js-image-snapshots-addon-events-logger-1-snap.png
Binary file not shown.
Binary file removed
BIN
-5.35 KB
...-js-image-snapshots-addon-info-decorator-use-info-as-story-decorator-1-snap.png
Binary file not shown.
Binary file removed
BIN
-4.46 KB
...shots-image-runner-js-image-snapshots-addon-info-git-hub-issues-1814-1-snap.png
Binary file not shown.
Binary file removed
BIN
-5.35 KB
...image-snapshots-addon-info-markdown-displays-markdown-in-description-1-snap.png
Binary file not shown.
Binary file removed
BIN
-5.35 KB
...snapshots-addon-info-options-header-shows-or-hides-info-addon-header-1-snap.png
Binary file not shown.
Binary file removed
BIN
-49.6 KB
...e-snapshots-addon-info-options-inline-inlines-component-inside-story-1-snap.png
Binary file not shown.
Binary file removed
BIN
-7.48 KB
...-info-options-prop-tables-exclude-exclude-component-from-prop-tables-1-snap.png
Binary file not shown.
Binary file removed
BIN
-5.35 KB
...ddon-info-options-prop-tables-shows-additional-component-prop-tables-1-snap.png
Binary file not shown.
Binary file removed
BIN
-5.35 KB
...snapshots-addon-info-options-source-shows-or-hides-info-addon-source-1-snap.png
Binary file not shown.
Binary file removed
BIN
-5.36 KB
...napshots-addon-info-options-styles-extend-info-styles-with-an-object-1-snap.png
Binary file not shown.
Binary file removed
BIN
-5.35 KB
...-addon-info-options-styles-full-control-over-styles-using-a-function-1-snap.png
Binary file not shown.
Binary file removed
BIN
-5.35 KB
...on-info-options-table-component-use-a-custom-component-for-the-table-1-snap.png
Binary file not shown.
Binary file removed
BIN
-5.35 KB
...napshots-addon-info-react-docgen-comments-from-component-declaration-1-snap.png
Binary file not shown.
Binary file removed
BIN
-6.77 KB
...ge-snapshots-addon-info-react-docgen-comments-from-flow-declarations-1-snap.png
Diff not rendered.
Binary file removed
BIN
-6.52 KB
...apshots-addon-info-react-docgen-comments-from-prop-type-declarations-1-snap.png
Diff not rendered.
Binary file removed
BIN
-3.91 KB
...s__/storyshots-image-runner-js-image-snapshots-addon-jest-with-tests-1-snap.png
Diff not rendered.
Binary file removed
BIN
-11.8 KB
...s-with-knobs-options-triggers-actions-via-button-with-debounce-delay-1-snap.png
Diff not rendered.
Binary file removed
BIN
-29 KB
...on-knobs-with-knobs-options-tweaks-static-values-with-debounce-delay-1-snap.png
Diff not rendered.
Binary file removed
BIN
-11.8 KB
...s-image-snapshots-addon-knobs-with-knobs-triggers-actions-via-button-1-snap.png
Diff not rendered.
Binary file removed
BIN
-23.8 KB
...unner-js-image-snapshots-addon-knobs-with-knobs-tweaks-static-values-1-snap.png
Diff not rendered.
Binary file removed
BIN
-5.33 KB
.../storyshots-image-runner-js-image-snapshots-addon-links-button-first-1-snap.png
Diff not rendered.
Binary file removed
BIN
-4.7 KB
...storyshots-image-runner-js-image-snapshots-addon-links-button-second-1-snap.png
Diff not rendered.
Binary file removed
BIN
-5.45 KB
...ts__/storyshots-image-runner-js-image-snapshots-addon-links-href-log-1-snap.png
Diff not rendered.
Binary file removed
BIN
-4.94 KB
...__/storyshots-image-runner-js-image-snapshots-addon-links-link-first-1-snap.png
Diff not rendered.
Binary file removed
BIN
-4.63 KB
..._/storyshots-image-runner-js-image-snapshots-addon-links-link-second-1-snap.png
Diff not rendered.
Binary file removed
BIN
-4.44 KB
.../storyshots-image-runner-js-image-snapshots-addon-links-select-first-1-snap.png
Diff not rendered.
Binary file removed
BIN
-4.25 KB
.../storyshots-image-runner-js-image-snapshots-addon-links-select-index-1-snap.png
Diff not rendered.
Binary file removed
BIN
-4.44 KB
...storyshots-image-runner-js-image-snapshots-addon-links-select-second-1-snap.png
Diff not rendered.
Binary file removed
BIN
-4.44 KB
.../storyshots-image-runner-js-image-snapshots-addon-links-select-third-1-snap.png
Diff not rendered.
Binary file removed
BIN
-5.26 KB
...ots-image-runner-js-image-snapshots-addon-notes-using-deprecated-api-1-snap.png
Diff not rendered.
Binary file removed
BIN
-8.01 KB
...__/storyshots-image-runner-js-image-snapshots-addon-notes-with-notes-1-snap.png
Diff not rendered.
Binary file removed
BIN
-8.01 KB
...s-image-snapshots-addon-notes-with-notes-rendering-imported-markdown-1-snap.png
Diff not rendered.
Binary file removed
BIN
-3.48 KB
...s__/storyshots-image-runner-js-image-snapshots-addons-a-11-y-default-1-snap.png
Diff not rendered.
Binary file removed
BIN
-3.16 KB
...ryshots-image-runner-js-image-snapshots-addons-a-11-y-delayed-render-1-snap.png
Diff not rendered.
Binary file removed
BIN
-5.89 KB
...__/storyshots-image-runner-js-image-snapshots-addons-a-11-y-disabled-1-snap.png
Diff not rendered.
Binary file removed
BIN
-3.23 KB
...shots-image-runner-js-image-snapshots-addons-a-11-y-invalid-contrast-1-snap.png
Diff not rendered.
Binary file removed
BIN
-5.92 KB
...ots__/storyshots-image-runner-js-image-snapshots-addons-a-11-y-label-1-snap.png
Diff not rendered.
Binary file removed
BIN
-23.8 KB
.../storyshots-image-runner-js-image-snapshots-addons-actions-all-types-1-snap.png
Diff not rendered.
Binary file removed
BIN
-6.23 KB
...hots-image-runner-js-image-snapshots-addons-actions-circular-payload-1-snap.png
Diff not rendered.
Binary file removed
BIN
-5.73 KB
...hots-image-runner-js-image-snapshots-addons-actions-decorated-action-1-snap.png
Diff not rendered.
Binary file removed
BIN
-5.83 KB
...ryshots-image-runner-js-image-snapshots-addons-actions-function-name-1-snap.png
Diff not rendered.
Binary file removed
BIN
-5.29 KB
...toryshots-image-runner-js-image-snapshots-addons-actions-hello-world-1-snap.png
Diff not rendered.
Binary file removed
BIN
-4.73 KB
...ge-runner-js-image-snapshots-addons-actions-reserved-keyword-as-name-1-snap.png
Diff not rendered.
Binary file removed
BIN
-7.87 KB
...toryshots-image-runner-js-image-snapshots-addons-backgrounds-story-1-1-snap.png
Diff not rendered.
Binary file removed
BIN
-4.78 KB
...toryshots-image-runner-js-image-snapshots-addons-backgrounds-story-2-1-snap.png
Diff not rendered.
Binary file removed
BIN
-6.23 KB
...ts__/storyshots-image-runner-js-image-snapshots-addons-events-logger-1-snap.png
Diff not rendered.
Binary file removed
BIN
-5.64 KB
...js-image-snapshots-addons-info-decorator-use-info-as-story-decorator-1-snap.png
Diff not rendered.
Binary file removed
BIN
-4.73 KB
...hots-image-runner-js-image-snapshots-addons-info-git-hub-issues-1814-1-snap.png
Diff not rendered.
Binary file removed
BIN
-5.64 KB
...mage-snapshots-addons-info-markdown-displays-markdown-in-description-1-snap.png
Diff not rendered.
Binary file removed
BIN
-5.64 KB
...napshots-addons-info-options-header-shows-or-hides-info-addon-header-1-snap.png
Diff not rendered.
Binary file removed
BIN
-55.9 KB
...-snapshots-addons-info-options-inline-inlines-component-inside-story-1-snap.png
Diff not rendered.
Binary file removed
BIN
-7.65 KB
...-info-options-prop-tables-exclude-exclude-component-from-prop-tables-1-snap.png
Diff not rendered.
Binary file removed
BIN
-5.64 KB
...dons-info-options-prop-tables-shows-additional-component-prop-tables-1-snap.png
Diff not rendered.
Binary file removed
BIN
-5.64 KB
...napshots-addons-info-options-source-shows-or-hides-info-addon-source-1-snap.png
Diff not rendered.
Binary file removed
BIN
-5.68 KB
...apshots-addons-info-options-styles-extend-info-styles-with-an-object-1-snap.png
Diff not rendered.
Binary file removed
BIN
-5.64 KB
...addons-info-options-styles-full-control-over-styles-using-a-function-1-snap.png
Diff not rendered.
Binary file removed
BIN
-5.64 KB
...ns-info-options-table-component-use-a-custom-component-for-the-table-1-snap.png
Diff not rendered.
Binary file removed
BIN
-5.64 KB
...apshots-addons-info-react-docgen-comments-from-component-declaration-1-snap.png
Diff not rendered.
Binary file removed
BIN
-6.88 KB
...e-snapshots-addons-info-react-docgen-comments-from-flow-declarations-1-snap.png
Diff not rendered.
Binary file removed
BIN
-6.46 KB
...pshots-addons-info-react-docgen-comments-from-prop-type-declarations-1-snap.png
Diff not rendered.
Binary file removed
BIN
-4.16 KB
...__/storyshots-image-runner-js-image-snapshots-addons-jest-with-tests-1-snap.png
Diff not rendered.
Binary file removed
BIN
-13.3 KB
...s-with-knobs-options-triggers-actions-via-button-with-debounce-delay-1-snap.png
Diff not rendered.
Binary file removed
BIN
-33.8 KB
...ns-knobs-with-knobs-options-tweaks-static-values-with-debounce-delay-1-snap.png
Diff not rendered.
Binary file removed
BIN
-13.3 KB
...-image-snapshots-addons-knobs-with-knobs-triggers-actions-via-button-1-snap.png
Diff not rendered.
Binary file removed
BIN
-27.8 KB
...nner-js-image-snapshots-addons-knobs-with-knobs-tweaks-static-values-1-snap.png
Diff not rendered.
Binary file removed
BIN
-5.25 KB
...storyshots-image-runner-js-image-snapshots-addons-links-button-first-1-snap.png
Diff not rendered.
Binary file removed
BIN
-4.9 KB
...toryshots-image-runner-js-image-snapshots-addons-links-button-second-1-snap.png
Diff not rendered.
Binary file removed
BIN
-5.82 KB
...s__/storyshots-image-runner-js-image-snapshots-addons-links-href-log-1-snap.png
Diff not rendered.
Binary file removed
BIN
-5.3 KB
..._/storyshots-image-runner-js-image-snapshots-addons-links-link-first-1-snap.png
Diff not rendered.
Binary file removed
BIN
-4.94 KB
.../storyshots-image-runner-js-image-snapshots-addons-links-link-second-1-snap.png
Diff not rendered.
Binary file removed
BIN
-4.75 KB
...storyshots-image-runner-js-image-snapshots-addons-links-select-first-1-snap.png
Diff not rendered.
Binary file removed
BIN
-4.79 KB
...storyshots-image-runner-js-image-snapshots-addons-links-select-index-1-snap.png
Diff not rendered.
Binary file removed
BIN
-4.75 KB
...toryshots-image-runner-js-image-snapshots-addons-links-select-second-1-snap.png
Diff not rendered.
Binary file removed
BIN
-4.75 KB
...storyshots-image-runner-js-image-snapshots-addons-links-select-third-1-snap.png
Diff not rendered.
Binary file removed
BIN
-5.76 KB
...ts-image-runner-js-image-snapshots-addons-notes-using-deprecated-api-1-snap.png
Diff not rendered.
Binary file removed
BIN
-7.78 KB
..._/storyshots-image-runner-js-image-snapshots-addons-notes-with-notes-1-snap.png
Diff not rendered.
Binary file removed
BIN
-7.78 KB
...-image-snapshots-addons-notes-with-notes-rendering-imported-markdown-1-snap.png
Diff not rendered.
Binary file added
BIN
+10.1 KB
..._/storyshots-image-runner-js-image-snapshots-addons-storyshots-table-1-snap.png
Oops, something went wrong.
Binary file renamed
BIN
+4.66 KB
...shots-ui-stories-header-simple-1-snap.png → ...apshots-addons-storyshots-text-1-snap.png
Oops, something went wrong.
Binary file removed
BIN
-3.67 KB
...oryshots-image-runner-js-image-snapshots-components-menu-link-active-1-snap.png
Diff not rendered.
Binary file removed
BIN
-3.6 KB
...ryshots-image-runner-js-image-snapshots-components-menu-link-default-1-snap.png
Diff not rendered.
Binary file removed
BIN
-4.55 KB
...hots-image-runner-js-image-snapshots-components-menu-link-with-knobs-1-snap.png
Diff not rendered.
Binary file removed
BIN
-3.75 KB
...yshots-image-runner-js-image-snapshots-components-routed-link-w-href-1-snap.png
Diff not rendered.
Binary file removed
BIN
-10.6 KB
...ts-image-runner-js-image-snapshots-components-routed-link-w-on-click-1-snap.png
Diff not rendered.
Binary file removed
BIN
-5.54 KB
...__/storyshots-image-runner-js-image-snapshots-ui-addon-panel-default-1-snap.png
Diff not rendered.
Binary file removed
BIN
-4.97 KB
.../storyshots-image-runner-js-image-snapshots-ui-addon-panel-no-panels-1-snap.png
Diff not rendered.
Binary file removed
BIN
-6.6 KB
...shots-image-runner-js-image-snapshots-ui-layout-addon-panel-in-right-1-snap.png
Diff not rendered.
Binary file removed
BIN
-6.51 KB
...shots__/storyshots-image-runner-js-image-snapshots-ui-layout-default-1-snap.png
Diff not rendered.
Binary file removed
BIN
-4.4 KB
...s__/storyshots-image-runner-js-image-snapshots-ui-layout-full-screen-1-snap.png
Diff not rendered.
Binary file removed
BIN
-5.71 KB
.../storyshots-image-runner-js-image-snapshots-ui-layout-no-addon-panel-1-snap.png
Diff not rendered.
Binary file removed
BIN
-5.35 KB
...toryshots-image-runner-js-image-snapshots-ui-layout-no-stories-panel-1-snap.png
Diff not rendered.
Binary file removed
BIN
-4.34 KB
...ts__/storyshots-image-runner-js-image-snapshots-ui-menu-item-default-1-snap.png
Diff not rendered.
Binary file removed
BIN
-3.16 KB
.../storyshots-image-runner-js-image-snapshots-ui-stories-stories-empty-1-snap.png
Diff not rendered.
Binary file removed
BIN
-4.45 KB
...ots-image-runner-js-image-snapshots-ui-stories-stories-panel-default-1-snap.png
Diff not rendered.
Binary file removed
BIN
-4.78 KB
...ots-ui-stories-stories-panel-stories-hierarchies-exists-but-is-empty-1-snap.png
Diff not rendered.
Binary file removed
BIN
-4.45 KB
...shots-ui-stories-stories-panel-stories-hierarchy-exists-but-is-empty-1-snap.png
Diff not rendered.
Binary file removed
BIN
-5.39 KB
...age-snapshots-ui-stories-stories-panel-with-stories-hierarchies-prop-1-snap.png
Diff not rendered.
Binary file removed
BIN
-5.38 KB
...image-snapshots-ui-stories-stories-panel-with-stories-hierarchy-prop-1-snap.png
Diff not rendered.
Binary file removed
BIN
-4.69 KB
...storyshots-image-runner-js-image-snapshots-ui-stories-stories-simple-1-snap.png
Diff not rendered.
Binary file removed
BIN
-7.9 KB
...ots-ui-stories-stories-with-hierarchy-hierarchy-separator-is-defined-1-snap.png
Diff not rendered.
Binary file removed
BIN
-7 KB
...ui-stories-stories-with-highlighting-when-stories-filter-is-provided-1-snap.png
Diff not rendered.
Binary file removed
BIN
-8.69 KB
...-ui-stories-stories-without-hierarchy-hierarchy-separator-is-defined-1-snap.png
Diff not rendered.
Binary file removed
BIN
-4.35 KB
...ge-runner-js-image-snapshots-ui-stories-text-filter-with-filter-text-1-snap.png
Diff not rendered.
Binary file removed
BIN
-3.76 KB
...runner-js-image-snapshots-ui-stories-text-filter-without-filter-text-1-snap.png
Diff not rendered.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
examples/official-storybook/stories/__snapshots__/addon-storyshots.stories.storyshot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Storyshots Addons|Storyshots table 1`] = ` | ||
<table> | ||
<thead> | ||
<tr> | ||
<th> | ||
name | ||
</th> | ||
<th> | ||
type | ||
</th> | ||
<th> | ||
default | ||
</th> | ||
<th> | ||
description | ||
</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td> | ||
MyName | ||
</td> | ||
<td> | ||
MyType | ||
</td> | ||
<td> | ||
MyDefault | ||
</td> | ||
<td> | ||
MyDesc | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
`; | ||
|
||
exports[`Storyshots Addons|Storyshots text 1`] = ` | ||
<div> | ||
This is a test | ||
</div> | ||
`; |
25 changes: 25 additions & 0 deletions
25
examples/official-storybook/stories/addon-storyshots.stories.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import React from 'react'; | ||
import { storiesOf } from '@storybook/react'; | ||
|
||
storiesOf('Addons|Storyshots', module) | ||
.add('text', () => <div>This is a test</div>) | ||
.add('table', () => ( | ||
<table> | ||
<thead> | ||
<tr> | ||
<th>name</th> | ||
<th>type</th> | ||
<th>default</th> | ||
<th>description</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>MyName</td> | ||
<td>MyType</td> | ||
<td>MyDefault</td> | ||
<td>MyDesc</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
# Workaround for https://github.com/GoogleChrome/puppeteer/issues/290 | ||
|
||
sudo apt-get update | ||
sudo apt-get install -yq gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 \ | ||
libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 \ | ||
libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 \ | ||
libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 \ | ||
ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget |