mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-22 06:36:17 +00:00
Adding accessibility tests script.
This commit is contained in:
parent
2c507a474d
commit
ae18b91292
18
accessibility_tests.sh
Executable file
18
accessibility_tests.sh
Executable file
|
@ -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
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue