Skip to content

A free open source IT asset/license management system

Added configs

snipeeaaac76435f2
diff --git a/.pa11yci b/.pa11yci
new file mode 100644
index 0000000000..4ed9e25c67
--- /dev/null
+++ b/.pa11yci
@@ -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": [
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/pa11y.js b/pa11y.js
new file mode 100644
index 0000000000..fc1b705f51
--- /dev/null
+++ b/pa11y.js
@@ -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"
+ ],
+});
\ No newline at end of file