fixed snapshot tests on ci

This commit is contained in:
Sebastian Sdorra
2019-10-11 15:23:45 +02:00
parent b10d7ddfd7
commit 176affb3e5
2 changed files with 64 additions and 3 deletions

View File

@@ -18,11 +18,11 @@ exports[`Storyshots Button Colors 1`] = `
className="sc-bwzfXH EEAiO"
>
<button
className="button is-success"
className="button is-link"
onClick={[Function]}
type="button"
>
success
link
</button>
</div>
@@ -38,6 +38,18 @@ exports[`Storyshots Button Colors 1`] = `
</button>
</div>
<div
className="sc-bwzfXH EEAiO"
>
<button
className="button is-success"
onClick={[Function]}
type="button"
>
success
</button>
</div>
<div
className="sc-bwzfXH EEAiO"
>
@@ -62,6 +74,42 @@ exports[`Storyshots Button Colors 1`] = `
</button>
</div>
<div
className="sc-bwzfXH EEAiO"
>
<button
className="button is-white"
onClick={[Function]}
type="button"
>
white
</button>
</div>
<div
className="sc-bwzfXH EEAiO"
>
<button
className="button is-light"
onClick={[Function]}
type="button"
>
light
</button>
</div>
<div
className="sc-bwzfXH EEAiO"
>
<button
className="button is-dark"
onClick={[Function]}
type="button"
>
dark
</button>
</div>
<div
className="sc-bwzfXH EEAiO"
>
@@ -74,6 +122,18 @@ exports[`Storyshots Button Colors 1`] = `
</button>
</div>
<div
className="sc-bwzfXH EEAiO"
>
<button
className="button is-text"
onClick={[Function]}
type="button"
>
text
</button>
</div>
</div>
`;

View File

@@ -1,5 +1,6 @@
import path from "path";
import initStoryshots from "@storybook/addon-storyshots";
initStoryshots({
/* configuration options */
configPath: path.resolve(__dirname, "..", ".storybook")
});