diff options
author | Saturnino Abril <saturnino.abril@gmail.com> | 2017-06-21 05:08:37 +0800 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2017-06-20 17:08:37 -0400 |
commit | f80003a975d40741803fee576f57f2700a95656f (patch) | |
tree | 96fc310db0a49c010e5755b6c170745cda99f118 /webapp/components/new_channel_modal | |
parent | 6e2e1c3bbb12be059426d895dc1f6d4062d10532 (diff) | |
download | chat-f80003a975d40741803fee576f57f2700a95656f.tar.gz chat-f80003a975d40741803fee576f57f2700a95656f.tar.bz2 chat-f80003a975d40741803fee576f57f2700a95656f.zip |
add more Ids for UI automation (#6673)
Diffstat (limited to 'webapp/components/new_channel_modal')
-rw-r--r-- | webapp/components/new_channel_modal/new_channel_modal.jsx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/webapp/components/new_channel_modal/new_channel_modal.jsx b/webapp/components/new_channel_modal/new_channel_modal.jsx index 48c2ddd15..d77c29d64 100644 --- a/webapp/components/new_channel_modal/new_channel_modal.jsx +++ b/webapp/components/new_channel_modal/new_channel_modal.jsx @@ -203,6 +203,7 @@ export default class NewChannelModal extends React.PureComponent { } var channelSwitchText = ''; + let inputPrefixId = ''; switch (this.props.channelType) { case 'P': channelSwitchText = ( @@ -214,6 +215,7 @@ export default class NewChannelModal extends React.PureComponent { {createPublicChannelLink} </div> ); + inputPrefixId = 'newPrivateChannel'; break; case 'O': channelSwitchText = ( @@ -225,6 +227,7 @@ export default class NewChannelModal extends React.PureComponent { {createPrivateChannelLink} </div> ); + inputPrefixId = 'newPublicChannel'; break; } @@ -264,6 +267,7 @@ export default class NewChannelModal extends React.PureComponent { </label> <div className='col-sm-9'> <input + id={inputPrefixId + 'Name'} onChange={this.handleChange} type='text' ref='display_name' @@ -307,6 +311,7 @@ export default class NewChannelModal extends React.PureComponent { </div> <div className='col-sm-9'> <textarea + id={inputPrefixId + 'Purpose'} className='form-control no-resize' ref='channel_purpose' rows='4' @@ -341,6 +346,7 @@ export default class NewChannelModal extends React.PureComponent { </div> <div className='col-sm-9'> <textarea + id={inputPrefixId + 'Header'} className='form-control no-resize' ref='channel_header' rows='4' |