55 lines
2.1 KiB
Plaintext
55 lines
2.1 KiB
Plaintext
|
|
- const axe = pageInfo.data.axe.run ? pageInfo.data.axe.run : pageInfo.data.axe.pageSummary
|
|
|
|
a
|
|
h2 Axe
|
|
p Axe is an accessibility testing engine for websites and other HTML-based user interfaces. Tested using #{axe.testEngine.name} version #{axe.testEngine.version}. Read more about
|
|
a(href='https://github.com/dequelabs/axe-core') axe-core
|
|
| .
|
|
|
|
if pageInfo.data.axe.run
|
|
h3 Violations
|
|
.responsive
|
|
table
|
|
- let oldImpact = 'none'
|
|
each violation in axe.violations
|
|
- if (oldImpact !== violation.impact)
|
|
tr
|
|
th(colspan='2', style='text-transform: uppercase;') #{violation.impact}
|
|
tr
|
|
td
|
|
a(href= violation.helpUrl) #{violation.help}
|
|
| (#{violation.tags}) -
|
|
i #{violation.id}
|
|
td #{violation.description}
|
|
- oldImpact = violation.impact
|
|
|
|
if (violation.nodes && violation.nodes.length > 0)
|
|
tr
|
|
td(colspan='2')
|
|
b #{violation.nodes[0].failureSummary}
|
|
ul
|
|
each nodes in violation.nodes
|
|
li #{nodes.html}
|
|
else
|
|
h3 Violations
|
|
p Median number of violations for all the runs. Check each individual run to see all the violations.
|
|
table
|
|
thead
|
|
tr
|
|
th Type
|
|
th Violations (median)
|
|
tbody
|
|
tr
|
|
td Critical
|
|
td #{axe.violations.critical.median} (#{axe.violationIssues.critical.median} issues)
|
|
tr
|
|
td Serious
|
|
td #{axe.violations.serious.median} (#{axe.violationIssues.serious.median} issues)
|
|
tr
|
|
td Moderate
|
|
td #{axe.violations.moderate.median} (#{axe.violationIssues.moderate.median} issues)
|
|
tr
|
|
td Minor
|
|
td #{axe.violations.minor.median} (#{axe.violationIssues.minor.median} issues)
|