Fix reports using 'NOT RUN' (#13577)

This commit is contained in:
Irina Efode 2022-10-20 18:37:04 +04:00 committed by GitHub
parent 53d2c7c3c5
commit 99bb3bba6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 11 deletions

View File

@ -70,9 +70,9 @@ function LoadDevices() {
function filterTable() {
device = $("#devices").val();
if (device == 0) {
$("#report td.value, #report td.table-secondary, #report td.table-primary, #report th.table-dark.device").show();
$("#report td.value, #report td.nr_value, #report td.table-secondary, #report td.table-primary, #report th.table-dark.device").show();
} else {
$("#report td.value, #report td.table-secondary, #report td.table-primary, #report th.table-dark.device").filter(function () {
$("#report td.value, #report td.nr_value, #report td.table-secondary, #report td.table-primary, #report th.table-dark.device").filter(function () {
$(this).toggle($(this).hasClass(device))
});
}
@ -190,7 +190,7 @@ function calculateColumnStatistics(device) {
$('#statistic .table-primary[scope="row"] i').text(total);
// trusted op
count_trusted_op = $("#report #data tr:not(:hidden) ." + device + ".value[value^='100'][crashed='0'][failed='0'][skipped='0']").length;
all_operations = $("#report #data tr:not(:hidden) .value[value!='N/A'][value!='---']." + device).length;
all_operations = $("#report #data tr:not(:hidden) .value[value!='N/A'][value!='---'][value!='NOT RUN']." + device).length;
if (!all_operations) {
trusted_op = "---";
} else {
@ -225,7 +225,7 @@ function calculateColumnStatistics(device) {
// AVG Pass Rate
sum_pass_rate = 0;
$("#report #data tr:not(:hidden) ." + device + ".value").each(function () {
if ($(this).attr('value') != 'N/A' && $(this).attr('value') != '---') {
if ($(this).attr('value') != 'N/A' && $(this).attr('value') != 'NOT RUN' && $(this).attr('value') != '---') {
sum_pass_rate += +$(this).attr('value');
}
});

View File

@ -18,16 +18,16 @@ body {
cursor: default;
}
.nr_value {
font-weight: 500;
.nr_value value {
font-weight: inherit;
background: #8080803d;
}
.nr_value span {
display:inline-block;
font-weight: 400;
padding: 1px 5px;
border-radius: 2px;
cursor: default;
display:inherit;
font-weight: inherit;
padding: inherit;
border-radius: inherit;
cursor: inherit;
}
.green {