[TESTS][A11Y] Login and check all user pages for accessibility

This commit is contained in:
Hugo Sales 2022-01-16 20:19:41 +00:00
parent 9e4aed84f8
commit da7ae5e1f5
No known key found for this signature in database
GPG Key ID: 7D0C7EAFC9D835A0
2 changed files with 29 additions and 5 deletions

View File

@ -45,7 +45,7 @@
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
<div>
<button class="btn btn-lg btn-primary" type="submit">Sign in</button>
<button id="signIn" class="btn btn-lg btn-primary" type="submit">Sign in</button>
</div>
{% endif %}

View File

@ -3,10 +3,11 @@
"chromeLaunchConfig": {
"ignoreHTTPSErrors": true
},
"timeout": 5000,
"standard": "WCAG2AAA",
"timeout": 10000,
"viewport": {
"width": 320,
"height": 480
"width": 1920,
"height": 1080
}
},
"concurrency": 4,
@ -19,6 +20,29 @@
"https://nginx/doc/source",
"https://nginx/doc/version",
"https://nginx/main/login",
"https://nginx/main/register"
"https://nginx/main/register",
{
"url": "http://nginx/main/login",
"actions": [
"navigate to https://nginx/main/login",
"set field #inputNicknameOrEmail to taken_user",
"set field #inputPassword to foobar",
"click element #signIn",
"wait for path to not be /login"
]
},
"https://nginx/feed/public",
"https://nginx/feed/home",
"https://nginx/@taken_user/circles",
"https://nginx/feed/network",
"https://nginx/feed/clique",
"https://nginx/feed/federated",
"https://nginx/feed/notifications",
"https://nginx/@taken_user/collections",
"https://nginx/@taken_user/favourites",
"https://nginx/@taken_user/reverse_favourites",
"https://nginx/directory/people",
"https://nginx/directory/groups",
"https://nginx/settings"
]
}