Automated accessibility tests (axe)
Në shqip: Testet automatike të aksesueshmërisë
ShpjegimiSQ
axe-core mund të ekzekutohet brenda testeve (jest-axe, @axe-core/playwright, pa11y) dhe të bëjë që testi të dështojë kur mungojnë alt-et, label-et ose kontrasti është i dobët. Kap problemet e zakonshme para se të arrijnë te përdoruesit.
EnglishEN
axe-core can run inside tests (jest-axe, @axe-core/playwright, pa11y) and fail the test when alt text, labels are missing or contrast is weak. It catches common problems before they reach users.
Si ta mendosh
Si një inspektor që kontrollon automatikisht rampat dhe ashensorët.
Lexoje në anglisht
Like an inspector automatically checking the ramps and lifts.
Shembull kodijavascript
const rezultati = await new AxeBuilder({ page }).analyze();
expect(rezultati.violations).toEqual([]);