Skip to content

Commit

Permalink
Fixing ids for UI automation (mattermost#5772)
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyhulen committed Mar 16, 2017
1 parent 631bafc commit 81a48af
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
22 changes: 20 additions & 2 deletions components/setting_item_max.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
7 changes: 6 additions & 1 deletion components/setting_item_min.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
);
}
Expand Down

0 comments on commit 81a48af

Please sign in to comment.