Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
@gooddata/test-storybook
Advanced tools
Visual regression testing for Storybook
Visual regression testing for Storybook
Note: Run screenshots tests only on CI to ensure the same environment (platform, browser, display pixel density, etc.)
Preparing environment:
yarn global add slimerjs@0.10.3
Gecko MaxVersion
property in your
~/.config/yarn/global/node_modules/slimerjs/src/application.ini
filePreparing repository where you want to test Storybook:
stories/
folderdist-storybook/
folderyarn add --dev @gooddata/test-storybook
.gitignore
file:
test-storybook/
!test-storybook/bitmaps-reference/
test-storybook/
folderimport { SCREENSHOT_WRAPPER_CLASS } from '@gooddata/test-storybook';
in your stories and add SCREENSHOT_WRAPPER_CLASS
className for elements that you want to testRunning tests:
Run test-storybook
from the root of your repository in which you want to test Storybook. You should specify some parameters:
-p [value]
run Grizzly with Storybook on port different than 9001-r
generate reference screenshotsTo run tests via GitHub comment you should type extended test - storybook
into GitHub PR comment
The link to CI html report appears in GitHub PR comment
If you want to change some reference screenshot:
test-storybook/bitmaps-reference/
folder with new oneyarn test
yarn validate
FAQs
Visual regression testing for Storybook
The npm package @gooddata/test-storybook receives a total of 45 weekly downloads. As such, @gooddata/test-storybook popularity was classified as not popular.
We found that @gooddata/test-storybook demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 58 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.