diff --git a/docs/configuration.md b/docs/configuration.md index 44a730bc..c348288f 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -105,7 +105,7 @@ Since JSON doesn't support functions, you need to be using the `loki.config.js` ```js module.exports = { // ...other config goes here - fileNameFormatter: ({ configurationName, kind, story }) => + fileNameFormatter: ({ configurationName, kind, story, parameters }) => `${configurationName}/${kind} ${story}`.toLowerCase(), }; ``` diff --git a/examples/react/src/stories/Decorators.stories.js b/examples/react/src/stories/Decorators.stories.js index 15219f1d..82fa723b 100644 --- a/examples/react/src/stories/Decorators.stories.js +++ b/examples/react/src/stories/Decorators.stories.js @@ -53,5 +53,5 @@ export const CustomChromeSelector = () => ( ); CustomChromeSelector.story = { - parameters: { loki: { chromeSelector: '#inner' } }, + parameters: { loki: { chromeSelector: '#inner' }, nonLokiParam: 'test123' }, }; diff --git a/fixtures/storybook-dynamic/iframe.html b/fixtures/storybook-dynamic/iframe.html index 681f4e69..ad3ec496 100644 --- a/fixtures/storybook-dynamic/iframe.html +++ b/fixtures/storybook-dynamic/iframe.html @@ -1,9 +1,46 @@ -
Sorry, but you either have no stories or none are selected somehow.
If the problem persists, check the browser console, or the terminal you've run Storybook from.
Sorry, but you either have no stories or none are selected somehow.
If the problem persists, check the browser console, or the terminal you've run Storybook from.