diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2016-11-07 15:48:53 +0100 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2016-11-07 15:49:00 +0100 |
commit | 271a84b5c2d3aa727d2eb4a2cc24195a8a931151 (patch) | |
tree | 3e1dfb470a3251f9d2214d27eef03eda53a86187 /server/sonar-web | |
parent | 5bcb1ae9ef1d237f312c7a64a96757843b9e3f20 (diff) | |
download | sonarqube-271a84b5c2d3aa727d2eb4a2cc24195a8a931151.tar.gz sonarqube-271a84b5c2d3aa727d2eb4a2cc24195a8a931151.zip |
SONAR-8300 add ITs
Diffstat (limited to 'server/sonar-web')
4 files changed, 10 insertions, 10 deletions
diff --git a/server/sonar-web/src/main/js/apps/projects/components/PageHeader.js b/server/sonar-web/src/main/js/apps/projects/components/PageHeader.js index 346ed06e7e4..1c02d020db4 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/PageHeader.js +++ b/server/sonar-web/src/main/js/apps/projects/components/PageHeader.js @@ -39,7 +39,7 @@ export default class PageHeader extends React.Component { {this.props.total != null && ( <span> - <strong>{this.props.total}</strong> {translate('projects._projects')} + <strong id="projects-total">{this.props.total}</strong> {translate('projects._projects')} </span> )} </div> diff --git a/server/sonar-web/src/main/js/apps/projects/components/ProjectCard.js b/server/sonar-web/src/main/js/apps/projects/components/ProjectCard.js index 04dbdb15fc3..9b9ec7fc11f 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/ProjectCard.js +++ b/server/sonar-web/src/main/js/apps/projects/components/ProjectCard.js @@ -38,7 +38,7 @@ export default class ProjectCard extends React.Component { const className = classNames('boxed-group', 'project-card', { 'boxed-group-loading': this.props.measures == null }); return ( - <div className={className}> + <div data-key={project.key} className={className}> {this.props.measures != null && ( <div className="boxed-group-actions"> <ProjectCardQualityGate status={this.props.measures['alert_status']}/> diff --git a/server/sonar-web/src/main/js/apps/projects/components/ProjectCardMeasures.js b/server/sonar-web/src/main/js/apps/projects/components/ProjectCardMeasures.js index d8004d2de66..a6ea6ec3e97 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/ProjectCardMeasures.js +++ b/server/sonar-web/src/main/js/apps/projects/components/ProjectCardMeasures.js @@ -41,7 +41,7 @@ export default class ProjectCardMeasures extends React.Component { return ( <div className="project-card-measures"> - <div className="project-card-measure"> + <div className="project-card-measure" data-key="reliability_rating"> <div className="project-card-measure-inner"> <div className="project-card-measure-number"> <Rating value={measures['reliability_rating']}/> @@ -52,7 +52,7 @@ export default class ProjectCardMeasures extends React.Component { </div> </div> - <div className="project-card-measure"> + <div className="project-card-measure" data-key="security_rating"> <div className="project-card-measure-inner"> <div className="project-card-measure-number"> <Rating value={measures['security_rating']}/> @@ -63,7 +63,7 @@ export default class ProjectCardMeasures extends React.Component { </div> </div> - <div className="project-card-measure"> + <div className="project-card-measure" data-key="sqale_rating"> <div className="project-card-measure-inner"> <div className="project-card-measure-number"> <Rating value={measures['sqale_rating']}/> @@ -74,7 +74,7 @@ export default class ProjectCardMeasures extends React.Component { </div> </div> - <div className="project-card-measure"> + <div className="project-card-measure" data-key="coverage"> <div className="project-card-measure-inner"> <div className="project-card-measure-number"> {measures['coverage'] != null && ( @@ -91,7 +91,7 @@ export default class ProjectCardMeasures extends React.Component { </div> </div> - <div className="project-card-measure"> + <div className="project-card-measure" data-key="duplicated_lines_density"> <div className="project-card-measure-inner"> <div className="project-card-measure-number"> <span className="spacer-right"> @@ -106,7 +106,7 @@ export default class ProjectCardMeasures extends React.Component { </div> </div> - <div className="project-card-measure"> + <div className="project-card-measure" data-key="ncloc"> <div className="project-card-measure-inner"> <div className="project-card-measure-number"> <span className="spacer-right"> diff --git a/server/sonar-web/src/main/js/apps/projects/filters/Filter.js b/server/sonar-web/src/main/js/apps/projects/filters/Filter.js index 1b0a7ad8c82..cab64031e7d 100644 --- a/server/sonar-web/src/main/js/apps/projects/filters/Filter.js +++ b/server/sonar-web/src/main/js/apps/projects/filters/Filter.js @@ -81,7 +81,7 @@ export default class Filter extends React.Component { const facetValue = (facet && getFacetValueForOption) ? getFacetValueForOption(facet, option) : null; return ( - <Link key={option} className={className} to={path}> + <Link key={option} className={className} to={path} data-key={option}> <span className="facet-name"> {this.props.renderOption(option, option === value)} </span> @@ -105,7 +105,7 @@ export default class Filter extends React.Component { render () { return ( - <div className="search-navigator-facet-box"> + <div className="search-navigator-facet-box" data-key={this.props.property}> {this.renderHeader()} {this.renderOptions()} </div> |