Ladsgroup added a comment.

  **Regarding rules:**
  So these are rules that pa11y supports 
<https://github.com/pa11y/pa11y/wiki/HTML-CodeSniffer-Rules> and these are 
rules that axe-core supports 
<https://github.com/dequelabs/axe-core/blob/develop/doc/rule-descriptions.md>. 
Both are pretty comprehensive and covers huge parts of WCAG 2.1 (and other 
standards like ARIA, Section 508, etc.) but none of them cover everything. As 
far as I understood not everything can be tested automatically so having a CI 
test doesn't mean the website is automatically accessible.
  
  **Usage:**
  The global usage of pa11y and axe is similar (not a big difference). I 
couldn't find any usage of pa11y in Wikimedia codebase but I found axe-core 
being installed in tainted ref (but not used!). I'm asking WMF people to see if 
they are using any other library that we might want to look into (haven't found 
anything in ooui itself)
  
  **Integration:**
  pa11y has a built-in support for puppeteer 
<https://github.com/pa11y/pa11y#puppeteer-example> which is nice but we don't 
use puppeteer for our testing. OTOH, axe-core has a library called jest-axe 
<https://www.npmjs.com/package/jest-axe> which makes testing our system pretty 
easy (going to build a PoC PR soon).
  
  **Misc:**
  
  - axe is way more than just an a11y testing library, they have a pretty nice 
library (Explaining-things kind of library e.g. explaining "aria-required-attr" 
error 
<https://dequeuniversity.com/rules/axe/4.0/aria-required-attr?application=rocketvalidator>).
 They also have browser extensions that comes handy, etc.
  - This stylelint plugin <https://github.com/YozhikM/stylelint-a11y> also is 
useful for testing basic a11y issues involving styles.

TASK DETAIL
  https://phabricator.wikimedia.org/T265299

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Ladsgroup
Cc: Aklapper, Sarai-WMDE, guergana.tzatchkova, Jakob_WMDE, Lydia_Pintscher, 
WMDE-leszek, gabriel-wmde, Charlie_WMDE, Michael, noarave, Hazizibinmahdi, 
Akuckartz, darthmon_wmde, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, 
Orienteerix, LawExplorer, Flycatchr, EHCliffe, Zppix, _jensen, rosalieper, 
Scott_WUaS, Volker_E, Wikidata-bugs, aude, Dinoguy1000, Mbch331, Jay8g
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to