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
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
5986c4a847
Коммит
5264d22d9c
@@ -15,6 +15,8 @@ import {Link} from 'react-router/es6';
|
|||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
|
import * as Utils from 'utils/utils.jsx';
|
||||||
|
|
||||||
export default class AdminNavbarDropdown extends React.Component {
|
export default class AdminNavbarDropdown extends React.Component {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
@@ -71,6 +73,7 @@ export default class AdminNavbarDropdown extends React.Component {
|
|||||||
teams.push(
|
teams.push(
|
||||||
<li key={'team_' + team.name}>
|
<li key={'team_' + team.name}>
|
||||||
<Link
|
<Link
|
||||||
|
id={'swithTo' + Utils.createSafeId(team.name)}
|
||||||
to={'/' + team.name + '/channels/town-square'}
|
to={'/' + team.name + '/channels/town-square'}
|
||||||
>
|
>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
@@ -113,6 +116,7 @@ export default class AdminNavbarDropdown extends React.Component {
|
|||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
href='#'
|
href='#'
|
||||||
|
id='adminNavbarDropdownButton'
|
||||||
className='dropdown-toggle admin-navbar-dropdown__toggle'
|
className='dropdown-toggle admin-navbar-dropdown__toggle'
|
||||||
data-toggle='dropdown'
|
data-toggle='dropdown'
|
||||||
role='button'
|
role='button'
|
||||||
@@ -136,6 +140,7 @@ export default class AdminNavbarDropdown extends React.Component {
|
|||||||
<li>
|
<li>
|
||||||
<a
|
<a
|
||||||
href='#'
|
href='#'
|
||||||
|
id='logout'
|
||||||
onClick={() => GlobalActions.emitUserLoggedOutEvent()}
|
onClick={() => GlobalActions.emitUserLoggedOutEvent()}
|
||||||
>
|
>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user