Comments (3)
Added a note on how to globally disable rules in 6443ee8.
I'm going to close this issue, but let me know if this ends up not meeting your needs.
from axe-storybook-testing.
Hey @eoinobrien, thanks for raising this issue.
This is currently possible by setting disabledRules
as a parameter in .storybook/preview.js. For example, something like
// .storybook/preview.js
export const parameters = {
// ... any other parameters
axe: {
// Disable some rules for axe-storybook-testing. Note that this will **_not_** disable rules for
// storybook's a11y addon.
disabledRules: [
"aria-dialog-name",
"aria-progressbar-name",
],
},
};
Having said that, it's not very discoverable. Adding a CLI option as you proposed would definitely be more discoverable. Or we could add some documentation specifically for globally disabling rules in this way.
Do you think this would meet your needs? Or we could add the CLI option to maximize discoverability.
from axe-storybook-testing.
Hi Andrew,
Thanks I did not realize that at all. I will see if we can use that but it looks like it should meet our needs.
Could certainly be more discoverable though. Could we update the documentation?
from axe-storybook-testing.
Related Issues (17)
- Conver to use ES modules?
- Tests automatically fail when there are a lot of Stories to test HOT 6
- Running same axe-storybook command produces inconsistent results HOT 17
- Color Contrast discrepancy HOT 8
- Axe-storybook misidentifying background color HOT 4
- Storybook 6.4 support HOT 3
- Unexpected token error when running axe-storybook as part of CI HOT 4
- Script always fails with error "Storybook object not found on window. Open your storybook and check the console for errors." HOT 13
- Add option to pass axe options as a story parameter HOT 1
- Error with Storybook 6.5.0-alpha.64 HOT 5
- Support selectors for disabledRule HOT 5
- Allow timeout to be specified on individual stories
- reporter options markdown and doc fail to run tests HOT 2
- Github actions - Error when run axe-storybook with chromatic HOT 3
- Feature request: warn vs error mode HOT 7
- Option to only fail on certain impact levels HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from axe-storybook-testing.