Sort failed tests to the end of the test result list

This commit is contained in:
baldurk
2025-10-31 11:29:04 +00:00
parent afb82cd6d5
commit 3a623d015d
+6
View File
@@ -246,6 +246,12 @@ document.body.onload = function() {
test.classList.add('expanded');
}
var h1s = document.getElementsByTagName('h1');
var summary = h1s[h1s.length-1];
// move failed tests to the end
[].slice.call(document.getElementsByClassName('failed test')).forEach((x) => {document.body.removeChild(x); document.body.insertBefore(x, summary);})
var toggles = document.getElementsByClassName('expandtoggle');
for(var i=0; i < toggles.length; i++) {