diff options
author | doh5 <doo@mattermost.com> | 2017-04-05 10:41:57 -0500 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2017-04-05 11:41:57 -0400 |
commit | 5264d22d9ca4367088852c33800cdf505b89ae9e (patch) | |
tree | 4b18757fd5390435e66e9f0981424153c6e2c671 | |
parent | 5986c4a847251e913e4cda3360677e4d0ac1d3f7 (diff) | |
download | chat-5264d22d9ca4367088852c33800cdf505b89ae9e.tar.gz chat-5264d22d9ca4367088852c33800cdf505b89ae9e.tar.bz2 chat-5264d22d9ca4367088852c33800cdf505b89ae9e.zip |
Add ids to admin dropdown button, switch team button and logout button (#5973)
* Add ids to admin dropdown button, switch team button and logout button
For selenium automation - update the admin setting and switch to specific team or logout
* updated the team nav button based on the suggestion
-rw-r--r-- | webapp/components/admin_console/admin_navbar_dropdown.jsx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/webapp/components/admin_console/admin_navbar_dropdown.jsx b/webapp/components/admin_console/admin_navbar_dropdown.jsx index b4fd889bc..cd58de633 100644 --- a/webapp/components/admin_console/admin_navbar_dropdown.jsx +++ b/webapp/components/admin_console/admin_navbar_dropdown.jsx @@ -15,6 +15,8 @@ import {Link} from 'react-router/es6'; import React from 'react'; +import * as Utils from 'utils/utils.jsx'; + export default class AdminNavbarDropdown extends React.Component { constructor(props) { super(props); @@ -71,6 +73,7 @@ export default class AdminNavbarDropdown extends React.Component { teams.push( <li key={'team_' + team.name}> <Link + id={'swithTo' + Utils.createSafeId(team.name)} to={'/' + team.name + '/channels/town-square'} > <FormattedMessage @@ -113,6 +116,7 @@ export default class AdminNavbarDropdown extends React.Component { > <a href='#' + id='adminNavbarDropdownButton' className='dropdown-toggle admin-navbar-dropdown__toggle' data-toggle='dropdown' role='button' @@ -136,6 +140,7 @@ export default class AdminNavbarDropdown extends React.Component { <li> <a href='#' + id='logout' onClick={() => GlobalActions.emitUserLoggedOutEvent()} > <FormattedMessage |