Skip to content

Commit

Permalink
Adding id examples for UI automation (mattermost#5508)
Browse files Browse the repository at this point in the history
* Adding id examples

* Adding id examples
  • Loading branch information
coreyhulen committed Mar 7, 2017
1 parent 5adc59c commit 9094d22
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions components/login/login_controller.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,7 @@ export default class LoginController extends React.Component {
</div>
<div className='form-group'>
<button
id='loginButton'
type='submit'
className='btn btn-primary'
>
Expand Down
1 change: 1 addition & 0 deletions components/setting_item_max.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export default class SettingItemMax extends React.Component {
if (this.props.submit) {
submit = (
<input
id='saveSetting'
type='submit'
className='btn btn-sm btn-primary'
href='#'
Expand Down
1 change: 1 addition & 0 deletions components/setting_item_min.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export default class SettingItemMin extends React.Component {
editButton = (
<li className='col-xs-12 col-sm-3 section-edit'>
<a
id={this.props.title}
className='theme'
href='#'
onClick={this.props.updateSection}
Expand Down
2 changes: 2 additions & 0 deletions components/sidebar_header_dropdown.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,7 @@ export default class SidebarHeaderDropdown extends React.Component {
<Dropdown.Menu>
<li>
<a
id='accountSettings'
href='#'
onClick={this.toggleAccountSettingsModal}
>
Expand All @@ -480,6 +481,7 @@ export default class SidebarHeaderDropdown extends React.Component {
{teamLink}
<li>
<a
id='logout'
href='#'
onClick={() => GlobalActions.emitUserLoggedOutEvent()}
>
Expand Down
3 changes: 3 additions & 0 deletions components/user_settings/user_settings_general.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,7 @@ class UserSettingsGeneralTab extends React.Component {
</label>
<div className='col-sm-7'>
<input
id='firstName'
className='form-control'
type='text'
onChange={this.updateFirstName}
Expand All @@ -706,6 +707,7 @@ class UserSettingsGeneralTab extends React.Component {
</label>
<div className='col-sm-7'>
<input
id='lastName'
className='form-control'
type='text'
onChange={this.updateLastName}
Expand Down Expand Up @@ -1123,6 +1125,7 @@ class UserSettingsGeneralTab extends React.Component {
<div>
<div className='modal-header'>
<button
id='closeUserSettings'
type='button'
className='close'
data-dismiss='modal'
Expand Down

0 comments on commit 9094d22

Please sign in to comment.