From f80003a975d40741803fee576f57f2700a95656f Mon Sep 17 00:00:00 2001 From: Saturnino Abril Date: Wed, 21 Jun 2017 05:08:37 +0800 Subject: add more Ids for UI automation (#6673) --- webapp/components/new_channel_modal/new_channel_modal.jsx | 6 ++++++ webapp/components/search_results_item.jsx | 7 ++++++- webapp/components/sidebar.jsx | 3 +++ .../components/__snapshots__/new_channel_modal.test.jsx.snap | 9 +++++++++ 4 files changed, 24 insertions(+), 1 deletion(-) 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} ); + inputPrefixId = 'newPrivateChannel'; break; case 'O': channelSwitchText = ( @@ -225,6 +227,7 @@ export default class NewChannelModal extends React.PureComponent { {createPrivateChannelLink} ); + inputPrefixId = 'newPublicChannel'; break; } @@ -264,6 +267,7 @@ export default class NewChannelModal extends React.PureComponent {