From ae18b912927251f5c150710592a283e88490178f Mon Sep 17 00:00:00 2001 From: Dessalines Date: Tue, 9 Feb 2021 11:54:41 -0500 Subject: [PATCH] Adding accessibility tests script. --- accessibility_tests.sh | 18 ++++++++++++++++++ src/shared/components/login.tsx | 1 + 2 files changed, 19 insertions(+) create mode 100755 accessibility_tests.sh diff --git a/accessibility_tests.sh b/accessibility_tests.sh new file mode 100755 index 0000000..0161e6d --- /dev/null +++ b/accessibility_tests.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +ignores="WCAG2AA.Principle1.Guideline1_4.1_4_3.G18.Fail" +base_url="http://192.168.50.60:1234" + +test_urls=( + $base_url + $base_url/communities + $base_url/login + $base_url/search + $base_url/c/announcements + $base_url/u/dessalines + $base_url/post/34286 +) + +for i in "${test_urls[@]}"; do + pa11y --ignore="$ignores" "$i" +done diff --git a/src/shared/components/login.tsx b/src/shared/components/login.tsx index 7006ae7..4a75e45 100644 --- a/src/shared/components/login.tsx +++ b/src/shared/components/login.tsx @@ -260,6 +260,7 @@ export class Login extends Component { type="button" class="btn btn-secondary" onClick={linkEvent(this, this.handleRegenCaptcha)} + aria-label={i18n.t('captcha')} > -- 2.44.1