Skip to content

Commit

Permalink
Add ids to admin dropdown button, switch team button and logout button
Browse files Browse the repository at this point in the history
For selenium automation - update the admin setting and switch to specific team or logout
  • Loading branch information
doh5 committed Apr 4, 2017
1 parent e2a8b3d commit 6ff8d5e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions webapp/components/admin_console/admin_navbar_dropdown.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -71,6 +73,7 @@ export default class AdminNavbarDropdown extends React.Component {
teams.push(
<li key={'team_' + team.name}>
<Link
id={Utils.createSafeId('swithTo'+team.name)}
to={'/' + team.name + '/channels/town-square'}
>
<FormattedMessage
Expand Down Expand Up @@ -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'
Expand All @@ -136,6 +140,7 @@ export default class AdminNavbarDropdown extends React.Component {
<li>
<a
href='#'
id='logout'
onClick={() => GlobalActions.emitUserLoggedOutEvent()}
>
<FormattedMessage
Expand Down

0 comments on commit 6ff8d5e

Please sign in to comment.