diff --git a/x-pack/legacy/plugins/spaces/public/nav_control/__snapshots__/nav_control_popover.test.tsx.snap b/x-pack/legacy/plugins/spaces/public/nav_control/__snapshots__/nav_control_popover.test.tsx.snap
index 5cad4e794cfda..45daa03e94c2e 100644
--- a/x-pack/legacy/plugins/spaces/public/nav_control/__snapshots__/nav_control_popover.test.tsx.snap
+++ b/x-pack/legacy/plugins/spaces/public/nav_control/__snapshots__/nav_control_popover.test.tsx.snap
@@ -5,7 +5,7 @@ exports[`NavControlPopover renders without crashing 1`] = `
anchorPosition="downRight"
button={
diff --git a/x-pack/legacy/plugins/spaces/public/nav_control/components/__snapshots__/spaces_description.test.tsx.snap b/x-pack/legacy/plugins/spaces/public/nav_control/components/__snapshots__/spaces_description.test.tsx.snap
index 079dab701cc1d..8e78f64ac59cb 100644
--- a/x-pack/legacy/plugins/spaces/public/nav_control/components/__snapshots__/spaces_description.test.tsx.snap
+++ b/x-pack/legacy/plugins/spaces/public/nav_control/components/__snapshots__/spaces_description.test.tsx.snap
@@ -4,6 +4,7 @@ exports[`SpacesDescription renders without crashing 1`] = `
diff --git a/x-pack/legacy/plugins/spaces/public/nav_control/components/spaces_description.test.tsx b/x-pack/legacy/plugins/spaces/public/nav_control/components/spaces_description.test.tsx
index aacf3845e0e0f..157dcab3e0be1 100644
--- a/x-pack/legacy/plugins/spaces/public/nav_control/components/spaces_description.test.tsx
+++ b/x-pack/legacy/plugins/spaces/public/nav_control/components/spaces_description.test.tsx
@@ -13,6 +13,7 @@ describe('SpacesDescription', () => {
expect(
shallow(
void;
capabilities: Capabilities;
}
export const SpacesDescription: FC = (props: Props) => {
const panelProps = {
+ id: props.id,
className: 'spcDescription',
title: 'Spaces',
};
diff --git a/x-pack/legacy/plugins/spaces/public/nav_control/components/spaces_menu.tsx b/x-pack/legacy/plugins/spaces/public/nav_control/components/spaces_menu.tsx
index 96ce18896b426..4d89f57d4ccf1 100644
--- a/x-pack/legacy/plugins/spaces/public/nav_control/components/spaces_menu.tsx
+++ b/x-pack/legacy/plugins/spaces/public/nav_control/components/spaces_menu.tsx
@@ -20,6 +20,7 @@ import { ManageSpacesButton } from './manage_spaces_button';
import { SpaceAvatar } from '../../space_avatar';
interface Props {
+ id: string;
spaces: Space[];
isLoading: boolean;
onSelectSpace: (space: Space) => void;
@@ -48,6 +49,7 @@ class SpacesMenuUI extends Component {
: this.getVisibleSpaces(searchTerm).map(this.renderSpaceMenuItem);
const panelProps = {
+ id: this.props.id,
className: 'spcMenu',
title: intl.formatMessage({
id: 'xpack.spaces.navControl.spacesMenu.changeCurrentSpaceTitle',
diff --git a/x-pack/legacy/plugins/spaces/public/nav_control/nav_control_popover.tsx b/x-pack/legacy/plugins/spaces/public/nav_control/nav_control_popover.tsx
index f291027e15232..59c8052a644da 100644
--- a/x-pack/legacy/plugins/spaces/public/nav_control/nav_control_popover.tsx
+++ b/x-pack/legacy/plugins/spaces/public/nav_control/nav_control_popover.tsx
@@ -32,6 +32,8 @@ interface State {
spaces: Space[];
}
+const popoutContentId = 'headerSpacesMenuContent';
+
export class NavControlPopover extends Component {
private activeSpace$?: Subscription;
@@ -71,6 +73,7 @@ export class NavControlPopover extends Component {
if (!this.state.loading && this.state.spaces.length < 2) {
element = (
@@ -78,6 +81,7 @@ export class NavControlPopover extends Component {
} else {
element = (
{
private getButton = (linkIcon: JSX.Element, linkTitle: string) => {
return (