From 3a623d015dddc304ac6626a0981129d02fae9cc7 Mon Sep 17 00:00:00 2001 From: baldurk Date: Fri, 31 Oct 2025 11:29:04 +0000 Subject: [PATCH] Sort failed tests to the end of the test result list --- util/test/rdtest/testresults.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/util/test/rdtest/testresults.js b/util/test/rdtest/testresults.js index 81eb3a307..8874fdbf8 100644 --- a/util/test/rdtest/testresults.js +++ b/util/test/rdtest/testresults.js @@ -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++) {