Adding accessibility tests script.
authorDessalines <tyhou13@gmx.com>
Tue, 9 Feb 2021 16:54:41 +0000 (11:54 -0500)
committerDessalines <tyhou13@gmx.com>
Tue, 9 Feb 2021 16:54:41 +0000 (11:54 -0500)
accessibility_tests.sh [new file with mode: 0755]
src/shared/components/login.tsx

diff --git a/accessibility_tests.sh b/accessibility_tests.sh
new file mode 100755 (executable)
index 0000000..0161e6d
--- /dev/null
@@ -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
index 7006ae71b0b656f5e6c511ae41760d1e130647fe..4a75e45349152d4e466e43d06804bfbbd61358fa 100644 (file)
@@ -260,6 +260,7 @@ export class Login extends Component<any, State> {
                 type="button"
                 class="btn btn-secondary"
                 onClick={linkEvent(this, this.handleRegenCaptcha)}
+                aria-label={i18n.t('captcha')}
               >
                 <svg class="icon icon-refresh-cw">
                   <use xlinkHref="#icon-refresh-cw"></use>