Skip to content

Commit

Permalink
Merge pull request #29 from gemini-testing/TRIVIAL.docs.autoScreensho…
Browse files Browse the repository at this point in the history
…tStorybookGlobals_storybook_version

chore: mention min storybook version for autoScreenshotStorybookGlobals
  • Loading branch information
KuznetsovRoman authored Nov 11, 2024
2 parents a6cd2a8 + 6dc0476 commit b93e1b3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Full plugin config:
| enabled | Boolean | true | Enable / disable the plugin |
| storybookConfigDir | String | ".storybook" | Path to the storybook configuration directory |
| autoScreenshots | Boolean | true | Enable / disable auto-screenshot tests |
| autoScreenshotStorybookGlobals | Record<string, Record<string, unknown>> | {} | Run multiple auto-screenshot tests with different [storybook globals](https://storybook.js.org/docs/7/essentials/toolbars-and-globals#globals) |
| autoScreenshotStorybookGlobals | Record<string, Record<string, unknown>> | {} | Run multiple auto-screenshot tests with different [storybook globals](https://storybook.js.org/docs/7/essentials/toolbars-and-globals#globals). Only works with storybook >= 8 |
| localport | Number | 6006 | Port to launch storybook dev server on |
| remoteStorybookUrl | String | "" | URL of the remote Storybook. If specified, local storybook dev sever would not be launched |
| browserIds | Array<String \| RegExp> | [] | Array of `browserId` to run storybook tests on. By default, all of browsers, specified in Testplane config would be used |
Expand Down Expand Up @@ -123,9 +123,7 @@ const meta: WithTestplane<Meta<typeof Button>> = {
skip: false, // if true, skips all Testplane tests from this story file
autoscreenshotSelector: ".my-selector", // Custom selector to auto-screenshot elements
browserIds: ["chrome"], // Testplane browsers to run tests from this story file
autoScreenshotStorybookGlobals: {
// override default autoScreenshotStorybookGlobals options from plugin config
// tests for default autoScreenshotStorybookGlobals from plugin config won't be generated
autoScreenshotStorybookGlobals: { // overlay plugin config's autoScreenshotStorybookGlobals options
"es locale": { locale: "es" },
"fr locale": { locale: "fr" }
},
Expand Down

0 comments on commit b93e1b3

Please sign in to comment.