summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2017-03-16 12:00:52 -0700
committerGitHub <noreply@github.com>2017-03-16 12:00:52 -0700
commitb7a128ec1cbb643f71e6c877defda6e8b6ab80b3 (patch)
tree51d92308c47d1292b7ca162c0343f52f7e3b6cf7 /webapp
parent0bc3e46082d9018188262f9cb8fdbc206d0656a0 (diff)
downloadchat-b7a128ec1cbb643f71e6c877defda6e8b6ab80b3.tar.gz
chat-b7a128ec1cbb643f71e6c877defda6e8b6ab80b3.tar.bz2
chat-b7a128ec1cbb643f71e6c877defda6e8b6ab80b3.zip
Fixing ids for UI automation (#5772)
Diffstat (limited to 'webapp')
-rw-r--r--webapp/components/setting_item_max.jsx22
-rw-r--r--webapp/components/setting_item_min.jsx7
2 files changed, 26 insertions, 3 deletions
diff --git a/webapp/components/setting_item_max.jsx b/webapp/components/setting_item_max.jsx
index 21fe389a7..9f3c4f0cf 100644
--- a/webapp/components/setting_item_max.jsx
+++ b/webapp/components/setting_item_max.jsx
@@ -31,12 +31,30 @@ export default class SettingItemMax extends React.Component {
render() {
var clientError = null;
if (this.props.client_error) {
- clientError = (<div className='form-group'><label className='col-sm-12 has-error'>{this.props.client_error}</label></div>);
+ clientError = (
+ <div className='form-group'>
+ <label
+ id='clientError'
+ className='col-sm-12 has-error'
+ >
+ {this.props.client_error}
+ </label>
+ </div>
+ );
}
var serverError = null;
if (this.props.server_error) {
- serverError = (<div className='form-group'><label className='col-sm-12 has-error'>{this.props.server_error}</label></div>);
+ serverError = (
+ <div className='form-group'>
+ <label
+ id='serverError'
+ className='col-sm-12 has-error'
+ >
+ {this.props.server_error}
+ </label>
+ </div>
+ );
}
var extraInfo = null;
diff --git a/webapp/components/setting_item_min.jsx b/webapp/components/setting_item_min.jsx
index 132d07952..4f756c46e 100644
--- a/webapp/components/setting_item_min.jsx
+++ b/webapp/components/setting_item_min.jsx
@@ -34,7 +34,12 @@ export default class SettingItemMin extends React.Component {
>
<li className='col-xs-12 col-sm-9 section-title'>{this.props.title}</li>
{editButton}
- <li className='col-xs-12 section-describe'>{this.props.describe}</li>
+ <li
+ id={this.props.title + 'Desc'}
+ className='col-xs-12 section-describe'
+ >
+ {this.props.describe}
+ </li>
</ul>
);
}