diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2016-09-02 16:13:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-02 16:13:51 +0200 |
commit | 5fac9ad9ac653dba89f5f53457c8d17959cef7cc (patch) | |
tree | 8f1516f14adaaa1ffc421b50737b33a887d29f75 /server/sonar-web/src/main/js/apps/background-tasks/components | |
parent | e71ab396b44b4a4f6e03edcba97564b27de6efa9 (diff) | |
download | sonarqube-5fac9ad9ac653dba89f5f53457c8d17959cef7cc.tar.gz sonarqube-5fac9ad9ac653dba89f5f53457c8d17959cef7cc.zip |
use jest (#1202)
Diffstat (limited to 'server/sonar-web/src/main/js/apps/background-tasks/components')
-rw-r--r-- | server/sonar-web/src/main/js/apps/background-tasks/components/Search.js | 2 | ||||
-rw-r--r-- | server/sonar-web/src/main/js/apps/background-tasks/components/Stats.js | 14 |
2 files changed, 7 insertions, 9 deletions
diff --git a/server/sonar-web/src/main/js/apps/background-tasks/components/Search.js b/server/sonar-web/src/main/js/apps/background-tasks/components/Search.js index bfffb1021e4..9dd234a6207 100644 --- a/server/sonar-web/src/main/js/apps/background-tasks/components/Search.js +++ b/server/sonar-web/src/main/js/apps/background-tasks/components/Search.js @@ -151,7 +151,7 @@ export default class Search extends React.Component { <li className="bt-search-form-right"> <button - ref="reloadButton" + className="js-reload" onClick={this.handleReload.bind(this)} disabled={loading}> {translate('reload')} diff --git a/server/sonar-web/src/main/js/apps/background-tasks/components/Stats.js b/server/sonar-web/src/main/js/apps/background-tasks/components/Stats.js index 6fe1e555236..46da2cbc416 100644 --- a/server/sonar-web/src/main/js/apps/background-tasks/components/Stats.js +++ b/server/sonar-web/src/main/js/apps/background-tasks/components/Stats.js @@ -53,13 +53,12 @@ export default class Stats extends React.Component { if (this.props.pendingCount > 0) { return ( <span> - <span ref="pendingCount" className="emphasised-measure">{this.props.pendingCount}</span> + <span className="js-pending-count emphasised-measure">{this.props.pendingCount}</span> {translate('background_tasks.pending')} <a - ref="cancelPending" onClick={this.handleCancelAllPending.bind(this)} - className="icon-delete spacer-left" + className="js-cancel-pending icon-delete spacer-left" title={translate('background_tasks.cancel_all_tasks')} data-toggle="tooltip" href="#"/> @@ -68,7 +67,7 @@ export default class Stats extends React.Component { } else { return ( <span> - <span ref="pendingCount" className="emphasised-measure">{this.props.pendingCount}</span> + <span className="js-pending-count emphasised-measure">{this.props.pendingCount}</span> {translate('background_tasks.pending')} </span> @@ -88,9 +87,8 @@ export default class Stats extends React.Component { if (this.props.failingCount > 0) { return ( <span> - <a ref="failureCount" - onClick={this.handleShowFailing.bind(this)} - className="emphasised-measure" + <a onClick={this.handleShowFailing.bind(this)} + className="js-failures-count emphasised-measure" data-toggle="tooltip" title="Count of projects where processing of most recent analysis report failed" href="#">{this.props.failingCount}</a> @@ -101,7 +99,7 @@ export default class Stats extends React.Component { } else { return ( <span> - <span ref="failureCount" className="emphasised-measure" data-toggle="tooltip" + <span className="js-failures-count emphasised-measure" data-toggle="tooltip" title="Count of projects where processing of most recent analysis report failed"> {this.props.failingCount} </span> |