maj pa11y: ajout de cookie poour choix de langue
This commit is contained in:
@ -6,7 +6,10 @@
|
||||
"headers": {
|
||||
{{if not (empty .PA11Y_USERNAME)}}
|
||||
{{ $credentials := print .PA11Y_USERNAME ":" .PA11Y_PASSWORD }}
|
||||
"Authorization": "Basic {{b64enc $credentials}}"
|
||||
"Authorization": "Basic {{b64enc $credentials}}" {{if not (empty .PA11Y_COOKIE)}},{{end}}
|
||||
{{end}}
|
||||
{{if not (empty .PA11Y_COOKIE)}}
|
||||
"Cookie": "{{print .PA11Y_COOKIE}}"
|
||||
{{end}}
|
||||
}
|
||||
}
|
@ -9,7 +9,8 @@ cd reports
|
||||
|
||||
export PUPPETEER_EXECUTABLE_PATH=$(which chromium-browser)
|
||||
export PA11Y_REPORTER="${PA11Y_REPORTER:-html}"
|
||||
export PA11Y_STANDARD=${PA11Y_STANDARD:-WCAG2AA}
|
||||
export PA11Y_STANDARD="${PA11Y_STANDARD:-WCAG2AA}"
|
||||
export PA11Y_IGNORE="${PA11Y_IGNORE:-'WCAG2AA.Principle1.Guideline1_4.1_4_3.G18.Fail;WCAG2AA.Principle1.Guideline1_4.1_4_3.G145.Fail'}"
|
||||
|
||||
PA11Y_ARGS=""
|
||||
|
||||
@ -26,4 +27,5 @@ pa11y \
|
||||
${PA11Y_ARGS} \
|
||||
--reporter "${PA11Y_REPORTER}" \
|
||||
--standard "${PA11Y_STANDARD}" \
|
||||
--ignore "${PA11Y_IGNORE}" \
|
||||
"$PA11Y_URL" || exit 0
|
||||
|
Reference in New Issue
Block a user