MDL-84592 tool_behat: Improve accessibility failure information

This commit is contained in:
Andrew Nicols
2025-02-20 10:26:30 +08:00
parent 9508120293
commit 6e3cb19969
+6 -3
View File
@@ -167,12 +167,15 @@ EOF;
}
$violationdata .= sprintf(
" %.03d violations of '%s' (severity: %s)\n%s\n",
" %.03d violations of rule '%s' found (severity: %s)\n",
count($violation->nodes),
$violation->description,
$violation->id,
$violation->impact,
$nodedata
);
$violationdata .= " {$violation->help}\n";
$violationdata .= " {$violation->description}\n";
$violationdata .= " {$violation->helpUrl}\n";
$violationdata .= $nodedata;
}
throw new ExpectationException($violationdata, $this->getSession());