pa11y: possibilité d'activer/désactiver les notices/warnings
This commit is contained in:
@ -3,6 +3,8 @@ def audit(String url, Map params = [:]) {
|
||||
def username = params.username ? params.username : '';
|
||||
def password = params.password ? params.password : '';
|
||||
def standard = params.standard ? params.standard : 'WCAG2AA';
|
||||
def includeWarnings = params.includeWarnings ? params.includeWarnings : false;
|
||||
def includeNotices = params.includeNotices ? params.includeNotices : false;
|
||||
|
||||
def pa11yImage = buildDockerImage()
|
||||
|
||||
@ -12,6 +14,8 @@ def audit(String url, Map params = [:]) {
|
||||
-e PA11Y_USERNAME='${username}'
|
||||
-e PA11Y_PASSWORD='${password}'
|
||||
-e PA11Y_STANDARD='${standard}'
|
||||
-e PA11Y_INCLUDE_WARNINGS='${includeWarnings}'
|
||||
-e PA11Y_INCLUDE_NOTICES='${includeNotices}'
|
||||
"""
|
||||
|
||||
pa11yImage.inside(dockerArgs) {
|
||||
|
Reference in New Issue
Block a user