diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2016-03-10 16:11:18 +0100 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2016-03-10 16:11:18 +0100 |
commit | 6c85674174a202268c5aadf4e529cff0c3716251 (patch) | |
tree | 2890deb2263fe5fe7384792c60c411352639e244 /server/sonar-web/src | |
parent | 85ba9f195b61f8c03641c1d1cc16e414415970b9 (diff) | |
download | sonarqube-6c85674174a202268c5aadf4e529cff0c3716251.tar.gz sonarqube-6c85674174a202268c5aadf4e529cff0c3716251.zip |
SONAR-7402 improve IT to check measures home page
Diffstat (limited to 'server/sonar-web/src')
-rw-r--r-- | server/sonar-web/src/main/js/apps/component-measures/components/AllMeasuresDomain.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/js/apps/component-measures/components/AllMeasuresDomain.js b/server/sonar-web/src/main/js/apps/component-measures/components/AllMeasuresDomain.js index 44df2b51b12..6068cfd31b1 100644 --- a/server/sonar-web/src/main/js/apps/component-measures/components/AllMeasuresDomain.js +++ b/server/sonar-web/src/main/js/apps/component-measures/components/AllMeasuresDomain.js @@ -53,21 +53,23 @@ export default function AllMeasuresDomain ({ domain, component, displayLeakHeade <ul className="domain-measures"> {finalMeasures.map(measure => ( - <li key={measure.metric.key}> + <li key={measure.metric.key} id={`measure-${measure.metric.key}`}> <Link to={{ pathname: measure.metric.key, query: { id: component.key } }}> <div className="domain-measures-name"> - <span>{measure.metric.name}</span> + <span id={`measure-${measure.metric.key}-name`}> + {measure.metric.name} + </span> </div> <div className="domain-measures-value"> {measure.value != null && ( - <span> + <span id={`measure-${measure.metric.key}-value`}> {formatMeasure(measure.value, measure.metric.type)} </span> )} </div> {hasLeak && measure.leak != null && ( <div className="domain-measures-value domain-measures-leak"> - <span> + <span id={`measure-${measure.metric.key}-leak`}> {formatLeak(measure.leak, measure.metric)} </span> </div> |