diff --git a/packages/components/src/clipboard-button/stories/index.js b/packages/components/src/clipboard-button/stories/index.js index 10f9fb0ec79281..7e0146448d56d5 100644 --- a/packages/components/src/clipboard-button/stories/index.js +++ b/packages/components/src/clipboard-button/stories/index.js @@ -13,7 +13,7 @@ import { useState } from '@wordpress/element'; */ import ClipboardButton from '../'; -export default { title: 'ClipboardButton(DontTest)', component: ClipboardButton }; +export default { title: 'ClipboardButton', component: ClipboardButton }; const ClipboardButtonWithState = ( { copied, ...props } ) => { const [ isCopied, setCopied ] = useState( copied ); diff --git a/packages/components/storybook/test/__snapshots__/index.js.snap b/packages/components/storybook/test/__snapshots__/index.js.snap index cf85860e7c05fe..1221f6dfb3f67c 100644 --- a/packages/components/storybook/test/__snapshots__/index.js.snap +++ b/packages/components/storybook/test/__snapshots__/index.js.snap @@ -477,6 +477,194 @@ exports[`@wordpress/components ColorIndicator Default 1`] = ` /> `; +exports[`@wordpress/components ColorPalette Default 1`] = ` +
+
+
+
+
+
+
+
+
+ +
+ +
+
+`; + +exports[`@wordpress/components ColorPalette With Knobs 1`] = ` +
+
+
+
+
+
+
+
+
+ +
+ +
+
+`; + exports[`@wordpress/components Dashicon Default 1`] = `
+ This should not show. +
, +
+ This text will + + but not inline + + always show. +
, +] +`; diff --git a/packages/components/storybook/test/index.js b/packages/components/storybook/test/index.js index ac956cd5c6be93..596ba77194bc03 100644 --- a/packages/components/storybook/test/index.js +++ b/packages/components/storybook/test/index.js @@ -4,8 +4,20 @@ import initStoryshots from '@storybook/addon-storyshots'; import path from 'path'; +/** + * The list of components that should be skipped because they + * don't work with the default Storyshots setup. + * + * @type {string[]} + */ +const skippedComponents = [ + 'ClipboardButton', +]; + initStoryshots( { configPath: path.resolve( __dirname, '../' ), suite: '@wordpress/components', - storyKindRegex: /^((?!.*?DontTest).)*$/, + storyKindRegex: new RegExp( + `^((?!${ skippedComponents.join( '|' ) }).)*$` + ), } );