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
Этот коммит содержится в:
doh5
2017-04-05 10:41:57 -05:00
коммит произвёл Joram Wilander
родитель 5986c4a847
Коммит 5264d22d9c

Просмотреть файл

@@ -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