diff --git a/.pa11yci.json b/.pa11yci.json index cb1418e1dd..943c6a8da6 100644 --- a/.pa11yci.json +++ b/.pa11yci.json @@ -2,12 +2,19 @@ "standard": "WCAG2AA", "level": "error", "defaults": { + "useIncognitoBrowserContext": false, "timeout": 500000, "wait": 2000, "ignore" : [ "WCAG2AA.Principle1.Guideline1_4.1_4_3.G145.Fail", "WCAG2AA.Principle1.Guideline1_4.1_4_3.G18.Fail" ], + "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/" + ], "viewport": { "width": 1280, "height": 1024 @@ -15,12 +22,15 @@ }, "urls": [ { + "__NOTE" : "this should always be FIRST (if browser context is preserved)", "url": "https://snipe-it.test/login", "actions": [ + "screen capture tests/pa11y/login.png", "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/" + "wait for url to be https://snipe-it.test/", + "screen capture tests/pa11y/dashboard.png" ] } ] diff --git a/tests/pa11y/.gitignore b/tests/pa11y/.gitignore new file mode 100755 index 0000000000..c96a04f008 --- /dev/null +++ b/tests/pa11y/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore \ No newline at end of file