From 224ddb35cf7ac804883f2ef0c9e4f5ab83dde6bc Mon Sep 17 00:00:00 2001
From: doh5 <doo@mattermost.com>
Date: Fri, 28 Apr 2017 09:11:47 -0500
Subject: Add IDs to sidebar_header_dropdown (#6256)

for selenium automation
---
 webapp/components/sidebar_header_dropdown.jsx | 8 ++++++++
 1 file changed, 8 insertions(+)

(limited to 'webapp/components/sidebar_header_dropdown.jsx')

diff --git a/webapp/components/sidebar_header_dropdown.jsx b/webapp/components/sidebar_header_dropdown.jsx
index 256019b64..171003400 100644
--- a/webapp/components/sidebar_header_dropdown.jsx
+++ b/webapp/components/sidebar_header_dropdown.jsx
@@ -183,6 +183,7 @@ export default class SidebarHeaderDropdown extends React.Component {
         return (
             <li>
                 <Link
+                    id='customEmoji'
                     onClick={this.handleClick}
                     to={'/' + this.props.teamName + '/emoji'}
                 >
@@ -219,6 +220,7 @@ export default class SidebarHeaderDropdown extends React.Component {
             inviteLink = (
                 <li>
                     <a
+                        id='sendEmailInvite'
                         href='#'
                         onClick={this.showInviteMemberModal}
                     >
@@ -249,6 +251,7 @@ export default class SidebarHeaderDropdown extends React.Component {
                 teamLink = (
                     <li>
                         <a
+                            id='getTeamInviteLink'
                             href='#'
                             onClick={this.showGetTeamInviteLinkModal}
                         >
@@ -285,6 +288,7 @@ export default class SidebarHeaderDropdown extends React.Component {
             teamSettings = (
                 <li>
                     <a
+                        id='teamSettings'
                         href='#'
                         data-toggle='modal'
                         data-target='#team_settings'
@@ -326,6 +330,7 @@ export default class SidebarHeaderDropdown extends React.Component {
             integrationsLink = (
                 <li>
                     <Link
+                        id='Integrations'
                         to={'/' + this.props.teamName + '/integrations'}
                         onClick={this.handleClick}
                     >
@@ -362,6 +367,7 @@ export default class SidebarHeaderDropdown extends React.Component {
             teams.push(
                 <li key='newTeam_li'>
                     <Link
+                        id='createTeam'
                         key='newTeam_a'
                         to='/create_team'
                         onClick={this.handleClick}
@@ -391,6 +397,7 @@ export default class SidebarHeaderDropdown extends React.Component {
             teams.push(
                 <li key='joinTeam_li'>
                     <Link
+                        id='joinAnotherTeam'
                         onClick={this.handleClick}
                         to='/select_team'
                     >
@@ -406,6 +413,7 @@ export default class SidebarHeaderDropdown extends React.Component {
         teams.push(
             <li key='leaveTeam_li'>
                 <a
+                    id='leaveTeam'
                     href='#'
                     onClick={GlobalActions.showLeaveTeamModal}
                 >
-- 
cgit v1.2.3-1-g7c22

