diff --git a/.storybook/Storyshots.test.js b/.storybook/Storyshots.test.js index 386a84488a..d116e2972b 100644 --- a/.storybook/Storyshots.test.js +++ b/.storybook/Storyshots.test.js @@ -7,7 +7,10 @@ jest.mock("react-dom", () => { render: () => null, unmountComponentAtNode: () => null, findDOMNode: () => null, + createPortal: () => null, }; }); -initStoryshots(); +initStoryshots({ + storyKindRegex: /^((?!.*?Modal).)*$/, +}); diff --git a/.storybook/__snapshots__/Storyshots.test.js.snap b/.storybook/__snapshots__/Storyshots.test.js.snap index b8c121b48a..4f403fed5e 100644 --- a/.storybook/__snapshots__/Storyshots.test.js.snap +++ b/.storybook/__snapshots__/Storyshots.test.js.snap @@ -20734,710 +20734,6 @@ exports[`Storyshots MailtoLink with subject and body 1`] = ` `; -exports[`Storyshots Modal basic usage 1`] = ` -
-
-
-
-

- Modal title. -

- -
-
-

- Modal body. -

-
-
- -
-
-
-
-`; - -exports[`Storyshots Modal configurable buttons 1`] = ` -
-
-
-
-

- Modal title. -

- -
-
-

- Modal body. -

-
-
- - - - -
-
-
-
-`; - -exports[`Storyshots Modal configurable buttons that perform actions 1`] = ` -
-
-
-
-

- Modal title. -

- -
-
-

- Modal body. -

-
-
- - -
-
-
-
-`; - -exports[`Storyshots Modal configurable close button 1`] = ` -
-
-
-
-

- Modal title. -

- -
-
-

- Modal body. -

-
-
- -
-
-
-
-`; - -exports[`Storyshots Modal configurable title and body 1`] = ` -
-
-
-
-

- Custom title! -

- -
-
-

- Custom body! -

-
-
- - -
-
-
-
-`; - -exports[`Storyshots Modal modal invoked via a button 1`] = ` -
-
-
-
-
-

- I am the modal! -

- -
-
-

- I was invoked by a button! -

-
-
- -
-
-
-
- -
-`; - -exports[`Storyshots Modal modal with element body 1`] = ` -
-
-
-
-

- Modal title. -

- -
-
-
-

- Enter your e-mail address to receive free cat facts! -

-
- - -
- -
-
- -
-
-
- -
-
-
-
-`; - -exports[`Storyshots Modal modal with warning variant 1`] = ` -
-
-
-
-

- Warning Modal -

- -
-
-
-
-
-
-

- Be careful! It is dangerous ahead. -

-
-
-
-
- -
-
-
-
-
-
- - -
-
-
-
-`; - -exports[`Storyshots Modal modal without a close button in the header 1`] = ` -
-
-
-
-

- Modal title. -

-
-
-

- Modal body. -

-
-
- -
-
-
-
-`; - exports[`Storyshots Paragon Welcome 1`] = `
  • @@ -25768,9 +25064,9 @@ exports[`Storyshots Tabs basic usage 1`] = `
    @@ -25779,9 +25075,9 @@ exports[`Storyshots Tabs basic usage 1`] = `
    @@ -25806,8 +25102,8 @@ exports[`Storyshots Textarea label as element 1`] = ` "", ] } - htmlFor="asInput48" - id="label-asInput48" + htmlFor="asInput37" + id="label-asInput37" >