summaryrefslogtreecommitdiffstats
path: root/cvp/3rd_party/static/testapi-ui/components
diff options
context:
space:
mode:
authorchenjiankun <chenjiankun1@huawei.com>2018-01-08 01:45:18 +0000
committerLeo wang <grakiss.wanglei@huawei.com>2018-01-22 01:37:44 +0000
commit66ffb37a2999146676ce3bd0a1b83fe3a4afc7a9 (patch)
treefbe7725beb635f0621c0c59ee30bc679f7518c09 /cvp/3rd_party/static/testapi-ui/components
parent4e7a72bba9a0d7ca95478b298e056025421e221d (diff)
Bugfix: pass/not pass filter not work in results-report page
For now if we click the pass/not pass filter, the user can also see the not pass/pass data in the page. Change-Id: I8bf696e615bedbb93714d457b3eb502a4ed1d923 Signed-off-by: chenjiankun <chenjiankun1@huawei.com> (cherry picked from commit e895992dc11f092ee80603e9fd4a3708807e6b61)
Diffstat (limited to 'cvp/3rd_party/static/testapi-ui/components')
-rw-r--r--cvp/3rd_party/static/testapi-ui/components/results-report/partials/reportDetails.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/cvp/3rd_party/static/testapi-ui/components/results-report/partials/reportDetails.html b/cvp/3rd_party/static/testapi-ui/components/results-report/partials/reportDetails.html
index b552ea47..e3632890 100644
--- a/cvp/3rd_party/static/testapi-ui/components/results-report/partials/reportDetails.html
+++ b/cvp/3rd_party/static/testapi-ui/components/results-report/partials/reportDetails.html
@@ -39,9 +39,9 @@ Test Filters:<br />
<span ng-if="ctrl.testStatus == 'passed'" class="text-success">[{{ value.pass }}]</span>
<span ng-if="ctrl.testStatus == 'not passed'" class="text-danger">[{{ value.fail }}]</span>
</a>
- <a uib-tooltip="view log" ng-click="ctrl.gotoResultLog(area)"><span class="glyphicon glyphicon-cog"></a>
+ <a uib-tooltip="view log" ng-click="ctrl.gotoResultLog(area)"><span class="glyphicon glyphicon-cog"></span></a>
<ul class="list-unstyled" uib-collapse="value.folder">
- <li ng-repeat="case in value.cases">
+ <li ng-repeat="case in value.cases" ng-if="(ctrl.testStatus=='passed' && ctrl.case_list.indexOf(case) > -1) || (ctrl.testStatus=='not passed' && ctrl.case_list.indexOf(case) == -1) || ctrl.testStatus=='total'">
<span ng-class="{'glyphicon glyphicon-ok text-success':ctrl.case_list.indexOf(case) > -1, 'glyphicon glyphicon-remove text-warning':ctrl.case_list.indexOf(case) == -1}" aria-hidden="true"></span>
<a ng-click="ctrl.gotoDoc(case)">{{ case }}</a>
</li>