-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Expand file tree
/
Copy pathpa11y.js
More file actions
24 lines (23 loc) · 592 Bytes
/
pa11y.js
File metadata and controls
24 lines (23 loc) · 592 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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 /',
]
});