diff options
author | Corey Hulen <corey@hulen.com> | 2017-03-07 13:58:41 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-07 13:58:41 -0500 |
commit | e753d3dc3c8aeb6d4a8acc48ec1fa9ead10eb6ab (patch) | |
tree | 3d1c8d6f192717782e34295768800e14d2dd02ad | |
parent | 378f02b445514a6e2ef89261c1e189feacf10315 (diff) | |
download | chat-e753d3dc3c8aeb6d4a8acc48ec1fa9ead10eb6ab.tar.gz chat-e753d3dc3c8aeb6d4a8acc48ec1fa9ead10eb6ab.tar.bz2 chat-e753d3dc3c8aeb6d4a8acc48ec1fa9ead10eb6ab.zip |
Adding id examples for UI automation (#5508)
* Adding id examples
* Adding id examples
-rw-r--r-- | webapp/components/login/login_controller.jsx | 1 | ||||
-rw-r--r-- | webapp/components/setting_item_max.jsx | 1 | ||||
-rw-r--r-- | webapp/components/setting_item_min.jsx | 1 | ||||
-rw-r--r-- | webapp/components/sidebar_header_dropdown.jsx | 2 | ||||
-rw-r--r-- | webapp/components/user_settings/user_settings_general.jsx | 3 |
5 files changed, 8 insertions, 0 deletions
diff --git a/webapp/components/login/login_controller.jsx b/webapp/components/login/login_controller.jsx index 9bb8a4324..d0aa0a5fc 100644 --- a/webapp/components/login/login_controller.jsx +++ b/webapp/components/login/login_controller.jsx @@ -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' > diff --git a/webapp/components/setting_item_max.jsx b/webapp/components/setting_item_max.jsx index 5b6a5d53a..94aacb481 100644 --- a/webapp/components/setting_item_max.jsx +++ b/webapp/components/setting_item_max.jsx @@ -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='#' diff --git a/webapp/components/setting_item_min.jsx b/webapp/components/setting_item_min.jsx index 96d8bf459..132d07952 100644 --- a/webapp/components/setting_item_min.jsx +++ b/webapp/components/setting_item_min.jsx @@ -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} diff --git a/webapp/components/sidebar_header_dropdown.jsx b/webapp/components/sidebar_header_dropdown.jsx index 484ca3298..34c228ac2 100644 --- a/webapp/components/sidebar_header_dropdown.jsx +++ b/webapp/components/sidebar_header_dropdown.jsx @@ -467,6 +467,7 @@ export default class SidebarHeaderDropdown extends React.Component { <Dropdown.Menu> <li> <a + id='accountSettings' href='#' onClick={this.toggleAccountSettingsModal} > @@ -480,6 +481,7 @@ export default class SidebarHeaderDropdown extends React.Component { {teamLink} <li> <a + id='logout' href='#' onClick={() => GlobalActions.emitUserLoggedOutEvent()} > diff --git a/webapp/components/user_settings/user_settings_general.jsx b/webapp/components/user_settings/user_settings_general.jsx index f9c624aa0..d50a934a0 100644 --- a/webapp/components/user_settings/user_settings_general.jsx +++ b/webapp/components/user_settings/user_settings_general.jsx @@ -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} @@ -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} @@ -1123,6 +1125,7 @@ class UserSettingsGeneralTab extends React.Component { <div> <div className='modal-header'> <button + id='closeUserSettings' type='button' className='close' data-dismiss='modal' |