Added configs

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2025-04-23 04:48:39 +01:00
parent 41160c64a8
commit eaaac76435
2 changed files with 58 additions and 0 deletions

31
.pa11yci Normal file
View file

@ -0,0 +1,31 @@
{
"standard": "WCAG2AA",
"level": "error",
"defaults": {
"timeout": 500000,
"wait": 2000,
"ignore" : [
"WCAG2AA.Principle1.Guideline1_4.1_4_3.G18.Fail"
],
"viewport": {
"width": 1280,
"height": 1024
}
},
"urls": [
{
"url": "https://snipe-it.test/login",
"actions": [
"set field input[name='username'] to admin",
"set field input[name='password'] to password",
"click element button[type=submit]",
"wait for url to be https://snipe-it.test/"
]
},
{
"url": "https://snipe-it.test",
"actions": [
]
}
]
}

27
pa11y.js Normal file
View file

@ -0,0 +1,27 @@
const pa11y = require('pa11y');
pa11y('http://snipe-it.test', {
standard: "WCAG2AA",
level: "error",
defaults: {
"timeout": 500000,
"wait": 2000,
"ignore": [
"WCAG2AA.Principle1.Guideline1_4.1_4_3.G18",
"WCAG2AA.Principle1.Guideline1_4.1_4_3.G18.Fail",
],
"viewport": {
"width": 1280,
"height": 1024
},
},
actions: [
'set field #username to admin',
'set field #password to password',
'click element #submit',
'wait for path to be /',
],
ignore : [
"WCAG2AA.Principle1.Guideline1_4.1_4_3.G18.Fail"
],
});