In some projects, the environment variable list is just too long. Takes a bit of a scroll to reach the test details.
There can two solutions:
- Add a simple button

The JS will be also simple:
function hideEnvironment() {
var x = document.getElementById("environment"); //
var buttonName = document.getElementById("environHideUnhide");
if (x.style.display === "none") {
x.style.display = "block";
buttonName.innerText = 'Hide';
} else {
x.style.display = "none";
buttonName.innerText = 'UnHide';
}
}
- Add the ability to add JS and HTML tags anywhere with a hook. May be based on IDs.