Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@gooddata/test-storybook
Advanced tools
Visual regression testing for Storybook
Visual regression testing for Storybook with automatically found test scenarios
Note: Run screenshots tests only on CI to ensure the same environment (platform, browser, display pixel density, etc.)
stories/
folder both in *.jsx
or *.tsx
yarn add --dev @gooddata/test-storybook
"test-storybook": "test-storybook"
into "scripts"
section in your package.json
.gitignore
file:
test-storybook/
test-storybook/
folderimport { screenshotWrap } from '@gooddata/test-storybook';
in your stories and wrap elements that you want to test in the function. -r
parameter, i.e. yarn test-storybook -r
. These will be discarded later and replaced with CI outputs.yarn test-storybook
from the root of your repository in which you want to test Storybook.extended test - storybook
.
The link to CI html report appears in GitHub PR commenthttps://ci.intgdc.com/job/.../123/artifact/test-storybook/tests/
stories/__screenshots__/
folder with new oneFor some scenarios you may need to add specific backstopjs options. All advanced options are available.
Add this section to packages.json
:
"test-storybook": {
"<section name>": {
"<scenario name>": {
"delay": 1000,
"removeSelectors": ".removeRandomValueElement",
"hoverSelector": ".hoverOverThisElementBeforeScreenshot"
}
}
}
git checkout master && git pull upstream master
npm version [major|minor|patch]
git commit -am "test-storybook - Release v[your_version]"
npm publish
git push upstream master
yarn test
yarn validate
FAQs
Visual regression testing for Storybook
The npm package @gooddata/test-storybook receives a total of 22 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.