Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests sorting #525

Merged
merged 18 commits into from
Aug 6, 2020
Prev Previous commit
Next Next commit
Add ordering on main view
  • Loading branch information
wojciech.blachowski committed Sep 24, 2019
commit 1b9a622f86270c5981fc46677c0bd3d20c8376f1
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ define([], function () {
urlStats[status] = urlStats[status] ? urlStats[status] + 1 : 1;
});
vm.testWrappers.push({
name: test.name,
test: test,
stats: urlStats
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<div class="page-main">
<div class="row reports-list">
<div class="reports-list-item {{test.getStatus()}}"
ng-repeat="testWrapper in suiteView.testWrappers | aetTestStatusFilter:$root.activeFilters | aetTestSearchFilter:$root.searchText | orderBy:'name'"
ng-repeat="testWrapper in suiteView.testWrappers | aetTestStatusFilter:$root.activeFilters | aetTestSearchFilter:$root.searchText | orderBy:$root.orderAttribute:$root.orderIsReverse"
ng-init="test = testWrapper.test; stats = testWrapper.stats;"
ng-class="test.getStatus()">
<a ui-sref="test({'suite':data.project,'test':test.name})">
Expand Down