Skip to content

Commit

Permalink
Refresh test execution counter when filtering on TestRun view page
Browse files Browse the repository at this point in the history
  • Loading branch information
atodorov committed Nov 19, 2024
1 parent f31e86f commit 25aa4c9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tcms/testruns/static/testruns/js/get.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ function filterTestExecutionsByProperty (runId, executions, filterBy, filterValu
// no input => show all rows
if (filterValue.trim().length === 0) {
$('.test-execution-element').show()
$('.test-executions-count').text(executions.length)
return
}

Expand Down Expand Up @@ -277,10 +278,12 @@ function filterTestExecutionsByProperty (runId, executions, filterBy, filterValu

const rows = findSelectorsToShowAndHideFromAPIData(executions, filtered, '.test-execution-{0}')
showOrHideMultipleRows('.test-execution-element', rows)
$('.test-executions-count').text(rows.show.length)
})
} else {
const rows = findSelectorsToShowAndHide(executions, filterBy, filterValue, '.test-execution-{0}')
showOrHideMultipleRows('.test-execution-element', rows)
$('.test-executions-count').text(rows.show.length)
}
}

Expand Down

0 comments on commit 25aa4c9

Please sign in to comment.