1
0
mirror of https://github.com/lensapp/lens.git synced 2024-09-11 09:25:26 +03:00

chore: Fixup tests snapshots to match new testid behaviour

- Move order-of-sidebar-items to the new package
- Fix the extension sidebar item registrator

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2023-05-12 14:12:25 -04:00 committed by Gabriel Accettola
parent 81293304a7
commit e6bef1a168
35 changed files with 1409 additions and 16774 deletions

View File

@ -0,0 +1,174 @@
/**
* Copyright (c) OpenLens Authors. All rights reserved.
* Licensed under MIT License. See LICENSE in root directory for more information.
*/
import { createContainer, DiContainer, getInjectable } from "@ogre-tools/injectable";
import { computed, IComputedValue } from "mobx";
import { noop } from "lodash/fp";
import sidebarItemsInjectable from "./sidebar-items.injectable";
import { SidebarItemDeclaration, sidebarItemInjectionToken } from "./tokens";
import { registerMobX } from "@ogre-tools/injectable-extension-for-mobx";
import { clusterSidebarFeature } from "./feature";
const someParentSidebarItemInjectable = getInjectable({
id: "sidebar-item-some-parent",
instantiate: () => ({
parentId: null,
title: "Some parent",
onClick: noop,
orderNumber: 42,
}),
injectionToken: sidebarItemInjectionToken,
});
const someOtherParentSidebarItemInjectable = getInjectable({
id: "sidebar-item-some-other-parent",
instantiate: () => ({
parentId: null,
title: "Some other parent",
onClick: noop,
orderNumber: 126,
}),
injectionToken: sidebarItemInjectionToken,
});
const someAnotherParentSidebarItemInjectable = getInjectable({
id: "sidebar-item-some-another-parent",
instantiate: () => ({
parentId: null,
title: "Some another parent",
onClick: noop,
orderNumber: 84,
}),
injectionToken: sidebarItemInjectionToken,
});
const someForthParentSidebarItemInjectable = getInjectable({
id: "sidebar-item-some-forth-parent",
instantiate: () => ({
parentId: null,
title: "Some another parent",
onClick: noop,
orderNumber: 84,
isVisible: computed(() => false),
isActive: computed(() => true),
}),
injectionToken: sidebarItemInjectionToken,
});
const someChildSidebarItemInjectable = getInjectable({
id: "sidebar-item-some-child",
instantiate: () => ({
parentId: someParentSidebarItemInjectable.id,
title: "Some child",
onClick: noop,
orderNumber: 168,
}),
injectionToken: sidebarItemInjectionToken,
});
const someOtherChildSidebarItemInjectable = getInjectable({
id: "sidebar-item-some-other-child",
instantiate: () => ({
parentId: someParentSidebarItemInjectable.id,
title: "Some other child",
onClick: noop,
orderNumber: 252,
}),
injectionToken: sidebarItemInjectionToken,
});
const someAnotherChildSidebarItemInjectable = getInjectable({
id: "sidebar-item-some-another-child",
instantiate: () => ({
parentId: someParentSidebarItemInjectable.id,
title: "Some another child",
onClick: noop,
orderNumber: 210,
}),
injectionToken: sidebarItemInjectionToken,
});
describe("order of sidebar items", () => {
let di: DiContainer;
let sidebarItems: IComputedValue<SidebarItemDeclaration[]>;
beforeEach(() => {
di = createContainer("test");
di.register(
someParentSidebarItemInjectable,
someOtherParentSidebarItemInjectable,
someAnotherParentSidebarItemInjectable,
someChildSidebarItemInjectable,
someOtherChildSidebarItemInjectable,
someAnotherChildSidebarItemInjectable,
someForthParentSidebarItemInjectable,
);
clusterSidebarFeature.register(di);
registerMobX(di);
sidebarItems = di.inject(sidebarItemsInjectable);
});
it("has parent items in order", () => {
const actual = sidebarItems.get().map((item) => item.id);
expect(actual).toEqual([
"sidebar-item-some-parent",
"sidebar-item-some-another-parent",
"sidebar-item-some-forth-parent",
"sidebar-item-some-other-parent",
]);
});
it("an item with no children and no isVisible configuration by default is visible", () => {
const item = sidebarItems.get().find((item) => item.id === someAnotherParentSidebarItemInjectable.id);
expect(item?.isVisible.get()).toBe(true);
});
it("an item with no children and an isVisible configuration is whatever the configuration specifies", () => {
const item = sidebarItems.get().find((item) => item.id === someForthParentSidebarItemInjectable.id);
expect(item?.isVisible.get()).toBe(false);
});
it("an item with children is visible if at least one of the children is visible", () => {
const item = sidebarItems.get().find((item) => item.id === "sidebar-item-some-parent");
expect(item?.isVisible.get()).toBe(true);
});
it("an item with no children and no isActive configuration by default is not active", () => {
const item = sidebarItems.get().find((item) => item.id === someAnotherParentSidebarItemInjectable.id);
expect(item?.isActive.get()).toBe(false);
});
it("an item with no children and an isActive configuration is whatever the configuration specifies", () => {
const item = sidebarItems.get().find((item) => item.id === someForthParentSidebarItemInjectable.id);
expect(item?.isActive.get()).toBe(true);
});
it("an item with children is active if at least one of the children is active", () => {
const item = sidebarItems.get().find((item) => item.id === "sidebar-item-some-parent");
expect(item?.isActive.get()).toBe(false);
});
it("has child items in order", () => {
const actual = sidebarItems
.get()
.find((item) => item.id === "sidebar-item-some-parent")
?.children.map((item) => item.id);
expect(actual).toEqual([
"sidebar-item-some-child",
"sidebar-item-some-another-child",
"sidebar-item-some-other-child",
]);
});
});

View File

@ -78,7 +78,7 @@ exports[`cluster - custom resources in sidebar renders 1`] = `
<a
aria-current="page"
class="navItem active"
data-testid="sidebar-item-link-for-workloads"
data-testid="link-for-sidebar-item-workloads"
href="/"
>
<i
@ -93,7 +93,7 @@ exports[`cluster - custom resources in sidebar renders 1`] = `
</span>
<i
class="Icon expandIcon material focusable"
data-testid="sidebar-item-expand-icon-for-workloads"
data-testid="expand-icon-for-sidebar-item-workloads"
>
<span
class="icon"
@ -111,7 +111,7 @@ exports[`cluster - custom resources in sidebar renders 1`] = `
>
<a
class="navItem"
data-testid="sidebar-item-link-for-network"
data-testid="link-for-sidebar-item-network"
href="/"
>
<i
@ -129,7 +129,7 @@ exports[`cluster - custom resources in sidebar renders 1`] = `
</span>
<i
class="Icon expandIcon material focusable"
data-testid="sidebar-item-expand-icon-for-network"
data-testid="expand-icon-for-sidebar-item-network"
>
<span
class="icon"
@ -147,7 +147,7 @@ exports[`cluster - custom resources in sidebar renders 1`] = `
>
<a
class="navItem"
data-testid="sidebar-item-link-for-helm"
data-testid="link-for-sidebar-item-helm"
href="/"
>
<i
@ -162,7 +162,7 @@ exports[`cluster - custom resources in sidebar renders 1`] = `
</span>
<i
class="Icon expandIcon material focusable"
data-testid="sidebar-item-expand-icon-for-helm"
data-testid="expand-icon-for-sidebar-item-helm"
>
<span
class="icon"
@ -192,7 +192,7 @@ exports[`cluster - custom resources in sidebar renders 1`] = `
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-testid="tab-link-for-overview"
data-testid="tab-link-for-sidebar-item-workloads-overview"
role="tab"
tabindex="0"
>
@ -519,7 +519,7 @@ exports[`cluster - custom resources in sidebar when custom resource definitions
<a
aria-current="page"
class="navItem active"
data-testid="sidebar-item-link-for-workloads"
data-testid="link-for-sidebar-item-workloads"
href="/"
>
<i
@ -534,7 +534,7 @@ exports[`cluster - custom resources in sidebar when custom resource definitions
</span>
<i
class="Icon expandIcon material focusable"
data-testid="sidebar-item-expand-icon-for-workloads"
data-testid="expand-icon-for-sidebar-item-workloads"
>
<span
class="icon"
@ -552,7 +552,7 @@ exports[`cluster - custom resources in sidebar when custom resource definitions
>
<a
class="navItem"
data-testid="sidebar-item-link-for-network"
data-testid="link-for-sidebar-item-network"
href="/"
>
<i
@ -570,7 +570,7 @@ exports[`cluster - custom resources in sidebar when custom resource definitions
</span>
<i
class="Icon expandIcon material focusable"
data-testid="sidebar-item-expand-icon-for-network"
data-testid="expand-icon-for-sidebar-item-network"
>
<span
class="icon"
@ -588,7 +588,7 @@ exports[`cluster - custom resources in sidebar when custom resource definitions
>
<a
class="navItem"
data-testid="sidebar-item-link-for-helm"
data-testid="link-for-sidebar-item-helm"
href="/"
>
<i
@ -603,7 +603,7 @@ exports[`cluster - custom resources in sidebar when custom resource definitions
</span>
<i
class="Icon expandIcon material focusable"
data-testid="sidebar-item-expand-icon-for-helm"
data-testid="expand-icon-for-sidebar-item-helm"
>
<span
class="icon"
@ -621,7 +621,7 @@ exports[`cluster - custom resources in sidebar when custom resource definitions
>
<a
class="navItem"
data-testid="sidebar-item-link-for-custom-resources"
data-testid="link-for-sidebar-item-custom-resources"
href="/"
>
<i
@ -639,7 +639,7 @@ exports[`cluster - custom resources in sidebar when custom resource definitions
</span>
<i
class="Icon expandIcon material focusable"
data-testid="sidebar-item-expand-icon-for-custom-resources"
data-testid="expand-icon-for-sidebar-item-custom-resources"
>
<span
class="icon"
@ -669,7 +669,7 @@ exports[`cluster - custom resources in sidebar when custom resource definitions
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-testid="tab-link-for-overview"
data-testid="tab-link-for-sidebar-item-workloads-overview"
role="tab"
tabindex="0"
>
@ -996,7 +996,7 @@ exports[`cluster - custom resources in sidebar when custom resource exists rende
<a
aria-current="page"
class="navItem active"
data-testid="sidebar-item-link-for-workloads"
data-testid="link-for-sidebar-item-workloads"
href="/"
>
<i
@ -1011,7 +1011,7 @@ exports[`cluster - custom resources in sidebar when custom resource exists rende
</span>
<i
class="Icon expandIcon material focusable"
data-testid="sidebar-item-expand-icon-for-workloads"
data-testid="expand-icon-for-sidebar-item-workloads"
>
<span
class="icon"
@ -1029,7 +1029,7 @@ exports[`cluster - custom resources in sidebar when custom resource exists rende
>
<a
class="navItem"
data-testid="sidebar-item-link-for-network"
data-testid="link-for-sidebar-item-network"
href="/"
>
<i
@ -1047,7 +1047,7 @@ exports[`cluster - custom resources in sidebar when custom resource exists rende
</span>
<i
class="Icon expandIcon material focusable"
data-testid="sidebar-item-expand-icon-for-network"
data-testid="expand-icon-for-sidebar-item-network"
>
<span
class="icon"
@ -1065,7 +1065,7 @@ exports[`cluster - custom resources in sidebar when custom resource exists rende
>
<a
class="navItem"
data-testid="sidebar-item-link-for-helm"
data-testid="link-for-sidebar-item-helm"
href="/"
>
<i
@ -1080,7 +1080,7 @@ exports[`cluster - custom resources in sidebar when custom resource exists rende
</span>
<i
class="Icon expandIcon material focusable"
data-testid="sidebar-item-expand-icon-for-helm"
data-testid="expand-icon-for-sidebar-item-helm"
>
<span
class="icon"
@ -1110,7 +1110,7 @@ exports[`cluster - custom resources in sidebar when custom resource exists rende
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-testid="tab-link-for-overview"
data-testid="tab-link-for-sidebar-item-workloads-overview"
role="tab"
tabindex="0"
>
@ -1437,7 +1437,7 @@ exports[`cluster - custom resources in sidebar when custom resource exists when
<a
aria-current="page"
class="navItem active"
data-testid="sidebar-item-link-for-workloads"
data-testid="link-for-sidebar-item-workloads"
href="/"
>
<i
@ -1452,7 +1452,7 @@ exports[`cluster - custom resources in sidebar when custom resource exists when
</span>
<i
class="Icon expandIcon material focusable"
data-testid="sidebar-item-expand-icon-for-workloads"
data-testid="expand-icon-for-sidebar-item-workloads"
>
<span
class="icon"
@ -1470,7 +1470,7 @@ exports[`cluster - custom resources in sidebar when custom resource exists when
>
<a
class="navItem"
data-testid="sidebar-item-link-for-network"
data-testid="link-for-sidebar-item-network"
href="/"
>
<i
@ -1488,7 +1488,7 @@ exports[`cluster - custom resources in sidebar when custom resource exists when
</span>
<i
class="Icon expandIcon material focusable"
data-testid="sidebar-item-expand-icon-for-network"
data-testid="expand-icon-for-sidebar-item-network"
>
<span
class="icon"
@ -1506,7 +1506,7 @@ exports[`cluster - custom resources in sidebar when custom resource exists when
>
<a
class="navItem"
data-testid="sidebar-item-link-for-helm"
data-testid="link-for-sidebar-item-helm"
href="/"
>
<i
@ -1521,7 +1521,7 @@ exports[`cluster - custom resources in sidebar when custom resource exists when
</span>
<i
class="Icon expandIcon material focusable"
data-testid="sidebar-item-expand-icon-for-helm"
data-testid="expand-icon-for-sidebar-item-helm"
>
<span
class="icon"
@ -1539,7 +1539,7 @@ exports[`cluster - custom resources in sidebar when custom resource exists when
>
<a
class="navItem"
data-testid="sidebar-item-link-for-custom-resources"
data-testid="link-for-sidebar-item-custom-resources"
href="/"
>
<i
@ -1557,7 +1557,7 @@ exports[`cluster - custom resources in sidebar when custom resource exists when
</span>
<i
class="Icon expandIcon material focusable"
data-testid="sidebar-item-expand-icon-for-custom-resources"
data-testid="expand-icon-for-sidebar-item-custom-resources"
>
<span
class="icon"
@ -1587,7 +1587,7 @@ exports[`cluster - custom resources in sidebar when custom resource exists when
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-testid="tab-link-for-overview"
data-testid="tab-link-for-sidebar-item-workloads-overview"
role="tab"
tabindex="0"
>
@ -1914,7 +1914,7 @@ exports[`cluster - custom resources in sidebar when custom resource exists when
<a
aria-current="page"
class="navItem active"
data-testid="sidebar-item-link-for-workloads"
data-testid="link-for-sidebar-item-workloads"
href="/"
>
<i
@ -1929,7 +1929,7 @@ exports[`cluster - custom resources in sidebar when custom resource exists when
</span>
<i
class="Icon expandIcon material focusable"
data-testid="sidebar-item-expand-icon-for-workloads"
data-testid="expand-icon-for-sidebar-item-workloads"
>
<span
class="icon"
@ -1947,7 +1947,7 @@ exports[`cluster - custom resources in sidebar when custom resource exists when
>
<a
class="navItem"
data-testid="sidebar-item-link-for-network"
data-testid="link-for-sidebar-item-network"
href="/"
>
<i
@ -1965,7 +1965,7 @@ exports[`cluster - custom resources in sidebar when custom resource exists when
</span>
<i
class="Icon expandIcon material focusable"
data-testid="sidebar-item-expand-icon-for-network"
data-testid="expand-icon-for-sidebar-item-network"
>
<span
class="icon"
@ -1983,7 +1983,7 @@ exports[`cluster - custom resources in sidebar when custom resource exists when
>
<a
class="navItem"
data-testid="sidebar-item-link-for-helm"
data-testid="link-for-sidebar-item-helm"
href="/"
>
<i
@ -1998,7 +1998,7 @@ exports[`cluster - custom resources in sidebar when custom resource exists when
</span>
<i
class="Icon expandIcon material focusable"
data-testid="sidebar-item-expand-icon-for-helm"
data-testid="expand-icon-for-sidebar-item-helm"
>
<span
class="icon"
@ -2016,7 +2016,7 @@ exports[`cluster - custom resources in sidebar when custom resource exists when
>
<a
class="navItem"
data-testid="sidebar-item-link-for-custom-resources"
data-testid="link-for-sidebar-item-custom-resources"
href="/"
>
<i
@ -2034,7 +2034,7 @@ exports[`cluster - custom resources in sidebar when custom resource exists when
</span>
<i
class="Icon expandIcon material focusable"
data-testid="sidebar-item-expand-icon-for-custom-resources"
data-testid="expand-icon-for-sidebar-item-custom-resources"
>
<span
class="icon"
@ -2050,12 +2050,12 @@ exports[`cluster - custom resources in sidebar when custom resource exists when
<div
class="SidebarItem"
data-is-active-test="false"
data-parent-id-test="custom-resources"
data-parent-id-test="sidebar-item-custom-resources"
data-testid="sidebar-item-custom-resource-definitions"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-custom-resource-definitions"
data-testid="link-for-sidebar-item-custom-resource-definitions"
href="/"
>
<span>
@ -2084,7 +2084,7 @@ exports[`cluster - custom resources in sidebar when custom resource exists when
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-testid="tab-link-for-overview"
data-testid="tab-link-for-sidebar-item-workloads-overview"
role="tab"
tabindex="0"
>
@ -2411,7 +2411,7 @@ exports[`cluster - custom resources in sidebar when custom resource exists when
<a
aria-current="page"
class="navItem active"
data-testid="sidebar-item-link-for-workloads"
data-testid="link-for-sidebar-item-workloads"
href="/"
>
<i
@ -2426,7 +2426,7 @@ exports[`cluster - custom resources in sidebar when custom resource exists when
</span>
<i
class="Icon expandIcon material focusable"
data-testid="sidebar-item-expand-icon-for-workloads"
data-testid="expand-icon-for-sidebar-item-workloads"
>
<span
class="icon"
@ -2444,7 +2444,7 @@ exports[`cluster - custom resources in sidebar when custom resource exists when
>
<a
class="navItem"
data-testid="sidebar-item-link-for-network"
data-testid="link-for-sidebar-item-network"
href="/"
>
<i
@ -2462,7 +2462,7 @@ exports[`cluster - custom resources in sidebar when custom resource exists when
</span>
<i
class="Icon expandIcon material focusable"
data-testid="sidebar-item-expand-icon-for-network"
data-testid="expand-icon-for-sidebar-item-network"
>
<span
class="icon"
@ -2480,7 +2480,7 @@ exports[`cluster - custom resources in sidebar when custom resource exists when
>
<a
class="navItem"
data-testid="sidebar-item-link-for-helm"
data-testid="link-for-sidebar-item-helm"
href="/"
>
<i
@ -2495,7 +2495,7 @@ exports[`cluster - custom resources in sidebar when custom resource exists when
</span>
<i
class="Icon expandIcon material focusable"
data-testid="sidebar-item-expand-icon-for-helm"
data-testid="expand-icon-for-sidebar-item-helm"
>
<span
class="icon"
@ -2513,7 +2513,7 @@ exports[`cluster - custom resources in sidebar when custom resource exists when
>
<a
class="navItem"
data-testid="sidebar-item-link-for-custom-resources"
data-testid="link-for-sidebar-item-custom-resources"
href="/"
>
<i
@ -2531,7 +2531,7 @@ exports[`cluster - custom resources in sidebar when custom resource exists when
</span>
<i
class="Icon expandIcon material focusable"
data-testid="sidebar-item-expand-icon-for-custom-resources"
data-testid="expand-icon-for-sidebar-item-custom-resources"
>
<span
class="icon"
@ -2561,7 +2561,7 @@ exports[`cluster - custom resources in sidebar when custom resource exists when
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-testid="tab-link-for-overview"
data-testid="tab-link-for-sidebar-item-workloads-overview"
role="tab"
tabindex="0"
>
@ -2888,7 +2888,7 @@ exports[`cluster - custom resources in sidebar when custom resource exists when
<a
aria-current="page"
class="navItem active"
data-testid="sidebar-item-link-for-workloads"
data-testid="link-for-sidebar-item-workloads"
href="/"
>
<i
@ -2903,7 +2903,7 @@ exports[`cluster - custom resources in sidebar when custom resource exists when
</span>
<i
class="Icon expandIcon material focusable"
data-testid="sidebar-item-expand-icon-for-workloads"
data-testid="expand-icon-for-sidebar-item-workloads"
>
<span
class="icon"
@ -2921,7 +2921,7 @@ exports[`cluster - custom resources in sidebar when custom resource exists when
>
<a
class="navItem"
data-testid="sidebar-item-link-for-network"
data-testid="link-for-sidebar-item-network"
href="/"
>
<i
@ -2939,7 +2939,7 @@ exports[`cluster - custom resources in sidebar when custom resource exists when
</span>
<i
class="Icon expandIcon material focusable"
data-testid="sidebar-item-expand-icon-for-network"
data-testid="expand-icon-for-sidebar-item-network"
>
<span
class="icon"
@ -2957,7 +2957,7 @@ exports[`cluster - custom resources in sidebar when custom resource exists when
>
<a
class="navItem"
data-testid="sidebar-item-link-for-helm"
data-testid="link-for-sidebar-item-helm"
href="/"
>
<i
@ -2972,7 +2972,7 @@ exports[`cluster - custom resources in sidebar when custom resource exists when
</span>
<i
class="Icon expandIcon material focusable"
data-testid="sidebar-item-expand-icon-for-helm"
data-testid="expand-icon-for-sidebar-item-helm"
>
<span
class="icon"
@ -2990,7 +2990,7 @@ exports[`cluster - custom resources in sidebar when custom resource exists when
>
<a
class="navItem"
data-testid="sidebar-item-link-for-custom-resources"
data-testid="link-for-sidebar-item-custom-resources"
href="/"
>
<i
@ -3008,7 +3008,7 @@ exports[`cluster - custom resources in sidebar when custom resource exists when
</span>
<i
class="Icon expandIcon material focusable"
data-testid="sidebar-item-expand-icon-for-custom-resources"
data-testid="expand-icon-for-sidebar-item-custom-resources"
>
<span
class="icon"
@ -3024,12 +3024,12 @@ exports[`cluster - custom resources in sidebar when custom resource exists when
<div
class="SidebarItem"
data-is-active-test="false"
data-parent-id-test="custom-resources"
data-parent-id-test="sidebar-item-custom-resources"
data-testid="sidebar-item-custom-resource-group-some-group"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-custom-resource-group-some-group"
data-testid="link-for-sidebar-item-custom-resource-group-some-group"
href="/"
>
<span>
@ -3037,7 +3037,7 @@ exports[`cluster - custom resources in sidebar when custom resource exists when
</span>
<i
class="Icon expandIcon material focusable"
data-testid="sidebar-item-expand-icon-for-custom-resource-group-some-group"
data-testid="expand-icon-for-sidebar-item-custom-resource-group-some-group"
>
<span
class="icon"
@ -3069,7 +3069,7 @@ exports[`cluster - custom resources in sidebar when custom resource exists when
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-testid="tab-link-for-overview"
data-testid="tab-link-for-sidebar-item-workloads-overview"
role="tab"
tabindex="0"
>
@ -3396,7 +3396,7 @@ exports[`cluster - custom resources in sidebar when custom resource exists when
<a
aria-current="page"
class="navItem active"
data-testid="sidebar-item-link-for-workloads"
data-testid="link-for-sidebar-item-workloads"
href="/"
>
<i
@ -3411,7 +3411,7 @@ exports[`cluster - custom resources in sidebar when custom resource exists when
</span>
<i
class="Icon expandIcon material focusable"
data-testid="sidebar-item-expand-icon-for-workloads"
data-testid="expand-icon-for-sidebar-item-workloads"
>
<span
class="icon"
@ -3429,7 +3429,7 @@ exports[`cluster - custom resources in sidebar when custom resource exists when
>
<a
class="navItem"
data-testid="sidebar-item-link-for-network"
data-testid="link-for-sidebar-item-network"
href="/"
>
<i
@ -3447,7 +3447,7 @@ exports[`cluster - custom resources in sidebar when custom resource exists when
</span>
<i
class="Icon expandIcon material focusable"
data-testid="sidebar-item-expand-icon-for-network"
data-testid="expand-icon-for-sidebar-item-network"
>
<span
class="icon"
@ -3465,7 +3465,7 @@ exports[`cluster - custom resources in sidebar when custom resource exists when
>
<a
class="navItem"
data-testid="sidebar-item-link-for-helm"
data-testid="link-for-sidebar-item-helm"
href="/"
>
<i
@ -3480,7 +3480,7 @@ exports[`cluster - custom resources in sidebar when custom resource exists when
</span>
<i
class="Icon expandIcon material focusable"
data-testid="sidebar-item-expand-icon-for-helm"
data-testid="expand-icon-for-sidebar-item-helm"
>
<span
class="icon"
@ -3498,7 +3498,7 @@ exports[`cluster - custom resources in sidebar when custom resource exists when
>
<a
class="navItem"
data-testid="sidebar-item-link-for-custom-resources"
data-testid="link-for-sidebar-item-custom-resources"
href="/"
>
<i
@ -3516,7 +3516,7 @@ exports[`cluster - custom resources in sidebar when custom resource exists when
</span>
<i
class="Icon expandIcon material focusable"
data-testid="sidebar-item-expand-icon-for-custom-resources"
data-testid="expand-icon-for-sidebar-item-custom-resources"
>
<span
class="icon"
@ -3532,12 +3532,12 @@ exports[`cluster - custom resources in sidebar when custom resource exists when
<div
class="SidebarItem"
data-is-active-test="false"
data-parent-id-test="custom-resources"
data-parent-id-test="sidebar-item-custom-resources"
data-testid="sidebar-item-custom-resource-group-some-group"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-custom-resource-group-some-group"
data-testid="link-for-sidebar-item-custom-resource-group-some-group"
href="/"
>
<span>
@ -3545,7 +3545,7 @@ exports[`cluster - custom resources in sidebar when custom resource exists when
</span>
<i
class="Icon expandIcon material focusable"
data-testid="sidebar-item-expand-icon-for-custom-resource-group-some-group"
data-testid="expand-icon-for-sidebar-item-custom-resource-group-some-group"
>
<span
class="icon"
@ -3561,12 +3561,12 @@ exports[`cluster - custom resources in sidebar when custom resource exists when
<div
class="SidebarItem"
data-is-active-test="false"
data-parent-id-test="custom-resource-group-some-group"
data-parent-id-test="sidebar-item-custom-resource-group-some-group"
data-testid="sidebar-item-custom-resource-group-some-group/some-resources"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-custom-resource-group-some-group/some-resources"
data-testid="link-for-sidebar-item-custom-resource-group-some-group/some-resources"
href="/"
>
<span>
@ -3597,7 +3597,7 @@ exports[`cluster - custom resources in sidebar when custom resource exists when
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-testid="tab-link-for-overview"
data-testid="tab-link-for-sidebar-item-workloads-overview"
role="tab"
tabindex="0"
>

View File

@ -78,7 +78,7 @@ exports[`legacy extension adding cluster frame components given custom component
<a
aria-current="page"
class="navItem active"
data-testid="sidebar-item-link-for-workloads"
data-testid="link-for-sidebar-item-workloads"
href="/"
>
<i
@ -93,6 +93,7 @@ exports[`legacy extension adding cluster frame components given custom component
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-workloads"
>
<span
class="icon"
@ -103,31 +104,6 @@ exports[`legacy extension adding cluster frame components given custom component
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-config"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-config"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="list"
>
list
</span>
</i>
<span>
Config
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -135,7 +111,7 @@ exports[`legacy extension adding cluster frame components given custom component
>
<a
class="navItem"
data-testid="sidebar-item-link-for-network"
data-testid="link-for-sidebar-item-network"
href="/"
>
<i
@ -153,6 +129,7 @@ exports[`legacy extension adding cluster frame components given custom component
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-network"
>
<span
class="icon"
@ -163,31 +140,6 @@ exports[`legacy extension adding cluster frame components given custom component
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-storage"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-storage"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="storage"
>
storage
</span>
</i>
<span>
Storage
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -195,7 +147,7 @@ exports[`legacy extension adding cluster frame components given custom component
>
<a
class="navItem"
data-testid="sidebar-item-link-for-helm"
data-testid="link-for-sidebar-item-helm"
href="/"
>
<i
@ -210,66 +162,7 @@ exports[`legacy extension adding cluster frame components given custom component
</span>
<i
class="Icon expandIcon material focusable"
>
<span
class="icon"
data-icon-name="keyboard_arrow_down"
>
keyboard_arrow_down
</span>
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-user-management"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-user-management"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="security"
>
security
</span>
</i>
<span>
Access Control
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-custom-resources"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-custom-resources"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="extension"
>
extension
</span>
</i>
<span>
Custom Resources
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-helm"
>
<span
class="icon"
@ -299,7 +192,7 @@ exports[`legacy extension adding cluster frame components given custom component
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-testid="tab-link-for-overview"
data-testid="tab-link-for-sidebar-item-workloads-overview"
role="tab"
tabindex="0"
>

View File

@ -78,7 +78,7 @@ exports[`cluster - visibility of sidebar items given kube resource for route is
<a
aria-current="page"
class="navItem active"
data-testid="sidebar-item-link-for-workloads"
data-testid="link-for-sidebar-item-workloads"
href="/"
>
<i
@ -93,6 +93,7 @@ exports[`cluster - visibility of sidebar items given kube resource for route is
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-workloads"
>
<span
class="icon"
@ -103,31 +104,6 @@ exports[`cluster - visibility of sidebar items given kube resource for route is
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-config"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-config"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="list"
>
list
</span>
</i>
<span>
Config
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -135,7 +111,7 @@ exports[`cluster - visibility of sidebar items given kube resource for route is
>
<a
class="navItem"
data-testid="sidebar-item-link-for-network"
data-testid="link-for-sidebar-item-network"
href="/"
>
<i
@ -153,6 +129,7 @@ exports[`cluster - visibility of sidebar items given kube resource for route is
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-network"
>
<span
class="icon"
@ -163,31 +140,6 @@ exports[`cluster - visibility of sidebar items given kube resource for route is
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-storage"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-storage"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="storage"
>
storage
</span>
</i>
<span>
Storage
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -195,7 +147,7 @@ exports[`cluster - visibility of sidebar items given kube resource for route is
>
<a
class="navItem"
data-testid="sidebar-item-link-for-helm"
data-testid="link-for-sidebar-item-helm"
href="/"
>
<i
@ -210,66 +162,7 @@ exports[`cluster - visibility of sidebar items given kube resource for route is
</span>
<i
class="Icon expandIcon material focusable"
>
<span
class="icon"
data-icon-name="keyboard_arrow_down"
>
keyboard_arrow_down
</span>
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-user-management"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-user-management"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="security"
>
security
</span>
</i>
<span>
Access Control
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-custom-resources"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-custom-resources"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="extension"
>
extension
</span>
</i>
<span>
Custom Resources
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-helm"
>
<span
class="icon"
@ -299,7 +192,7 @@ exports[`cluster - visibility of sidebar items given kube resource for route is
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-testid="tab-link-for-overview"
data-testid="tab-link-for-sidebar-item-workloads-overview"
role="tab"
tabindex="0"
>
@ -626,7 +519,7 @@ exports[`cluster - visibility of sidebar items given kube resource for route is
<a
aria-current="page"
class="navItem active"
data-testid="sidebar-item-link-for-workloads"
data-testid="link-for-sidebar-item-workloads"
href="/"
>
<i
@ -641,6 +534,7 @@ exports[`cluster - visibility of sidebar items given kube resource for route is
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-workloads"
>
<span
class="icon"
@ -654,36 +548,11 @@ exports[`cluster - visibility of sidebar items given kube resource for route is
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-config"
data-testid="sidebar-item-test"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-config"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="list"
>
list
</span>
</i>
<span>
Config
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-some-item-id"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-some-item-id"
data-testid="link-for-sidebar-item-test"
href="/"
>
<span>
@ -698,7 +567,7 @@ exports[`cluster - visibility of sidebar items given kube resource for route is
>
<a
class="navItem"
data-testid="sidebar-item-link-for-network"
data-testid="link-for-sidebar-item-network"
href="/"
>
<i
@ -716,6 +585,7 @@ exports[`cluster - visibility of sidebar items given kube resource for route is
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-network"
>
<span
class="icon"
@ -726,31 +596,6 @@ exports[`cluster - visibility of sidebar items given kube resource for route is
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-storage"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-storage"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="storage"
>
storage
</span>
</i>
<span>
Storage
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -758,7 +603,7 @@ exports[`cluster - visibility of sidebar items given kube resource for route is
>
<a
class="navItem"
data-testid="sidebar-item-link-for-namespaces"
data-testid="link-for-sidebar-item-namespaces"
href="/"
>
<i
@ -783,7 +628,7 @@ exports[`cluster - visibility of sidebar items given kube resource for route is
>
<a
class="navItem"
data-testid="sidebar-item-link-for-helm"
data-testid="link-for-sidebar-item-helm"
href="/"
>
<i
@ -798,66 +643,7 @@ exports[`cluster - visibility of sidebar items given kube resource for route is
</span>
<i
class="Icon expandIcon material focusable"
>
<span
class="icon"
data-icon-name="keyboard_arrow_down"
>
keyboard_arrow_down
</span>
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-user-management"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-user-management"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="security"
>
security
</span>
</i>
<span>
Access Control
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-custom-resources"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-custom-resources"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="extension"
>
extension
</span>
</i>
<span>
Custom Resources
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-helm"
>
<span
class="icon"
@ -887,7 +673,7 @@ exports[`cluster - visibility of sidebar items given kube resource for route is
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-testid="tab-link-for-overview"
data-testid="tab-link-for-sidebar-item-workloads-overview"
role="tab"
tabindex="0"
>

View File

@ -79,7 +79,7 @@ exports[`workload overview when navigating to workload overview renders 1`] = `
<a
aria-current="page"
class="navItem active"
data-testid="sidebar-item-link-for-workloads"
data-testid="link-for-sidebar-item-workloads"
href="/"
>
<i
@ -94,6 +94,7 @@ exports[`workload overview when navigating to workload overview renders 1`] = `
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-workloads"
>
<span
class="icon"
@ -104,31 +105,6 @@ exports[`workload overview when navigating to workload overview renders 1`] = `
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-config"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-config"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="list"
>
list
</span>
</i>
<span>
Config
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -136,7 +112,7 @@ exports[`workload overview when navigating to workload overview renders 1`] = `
>
<a
class="navItem"
data-testid="sidebar-item-link-for-network"
data-testid="link-for-sidebar-item-network"
href="/"
>
<i
@ -154,6 +130,7 @@ exports[`workload overview when navigating to workload overview renders 1`] = `
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-network"
>
<span
class="icon"
@ -164,31 +141,6 @@ exports[`workload overview when navigating to workload overview renders 1`] = `
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-storage"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-storage"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="storage"
>
storage
</span>
</i>
<span>
Storage
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -196,7 +148,7 @@ exports[`workload overview when navigating to workload overview renders 1`] = `
>
<a
class="navItem"
data-testid="sidebar-item-link-for-helm"
data-testid="link-for-sidebar-item-helm"
href="/"
>
<i
@ -211,66 +163,7 @@ exports[`workload overview when navigating to workload overview renders 1`] = `
</span>
<i
class="Icon expandIcon material focusable"
>
<span
class="icon"
data-icon-name="keyboard_arrow_down"
>
keyboard_arrow_down
</span>
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-user-management"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-user-management"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="security"
>
security
</span>
</i>
<span>
Access Control
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-custom-resources"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-custom-resources"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="extension"
>
extension
</span>
</i>
<span>
Custom Resources
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-helm"
>
<span
class="icon"
@ -300,7 +193,7 @@ exports[`workload overview when navigating to workload overview renders 1`] = `
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-testid="tab-link-for-overview"
data-testid="tab-link-for-sidebar-item-workloads-overview"
role="tab"
tabindex="0"
>
@ -313,7 +206,7 @@ exports[`workload overview when navigating to workload overview renders 1`] = `
<div
class="Tab flex gaps align-center"
data-is-active-test="false"
data-testid="tab-link-for-pods"
data-testid="tab-link-for-sidebar-item-pods"
role="tab"
tabindex="0"
>

View File

@ -105,7 +105,7 @@ describe("cluster - custom resources in sidebar", () => {
});
it("shows Custom Resources sidebar as expandable", () => {
expect(result.getByTestId("sidebar-item-expand-icon-for-custom-resources")).toBeInTheDocument();
expect(result.getByTestId("expand-icon-for-sidebar-item-custom-resources")).toBeInTheDocument();
});
it("does not show SomeResources sidebar", () => {
@ -118,7 +118,7 @@ describe("cluster - custom resources in sidebar", () => {
describe("when custom resources sidebar item is expanded", () => {
beforeEach(() => {
result.getByTestId("sidebar-item-expand-icon-for-custom-resources").click();
result.getByTestId("expand-icon-for-sidebar-item-custom-resources").click();
});
it("renders", () => {
@ -130,7 +130,7 @@ describe("cluster - custom resources in sidebar", () => {
});
it("shows Custom Resources sidebar as expandable", () => {
expect(result.getByTestId("sidebar-item-expand-icon-for-custom-resources")).toBeInTheDocument();
expect(result.getByTestId("expand-icon-for-sidebar-item-custom-resources")).toBeInTheDocument();
});
it("shows some-group group sidebar item", () => {
@ -143,7 +143,7 @@ describe("cluster - custom resources in sidebar", () => {
describe("when custom resources group sidebar item is expanded", () => {
beforeEach(() => {
result.getByTestId("sidebar-item-expand-icon-for-custom-resource-group-some-group").click();
result.getByTestId("expand-icon-for-sidebar-item-custom-resource-group-some-group").click();
});
it("renders", () => {
@ -178,7 +178,7 @@ describe("cluster - custom resources in sidebar", () => {
});
it("shows Custom Resources sidebar as expandable", () => {
expect(result.getByTestId("sidebar-item-expand-icon-for-custom-resources")).toBeInTheDocument();
expect(result.getByTestId("expand-icon-for-sidebar-item-custom-resources")).toBeInTheDocument();
});
it("does not show SomeResources sidebar", () => {
@ -191,7 +191,7 @@ describe("cluster - custom resources in sidebar", () => {
describe("when custom resources sidebar item is expanded", () => {
beforeEach(() => {
result.getByTestId("sidebar-item-expand-icon-for-custom-resources").click();
result.getByTestId("expand-icon-for-sidebar-item-custom-resources").click();
});
it("renders", () => {
@ -203,7 +203,7 @@ describe("cluster - custom resources in sidebar", () => {
});
it("shows Custom Resources sidebar as expandable", () => {
expect(result.getByTestId("sidebar-item-expand-icon-for-custom-resources")).toBeInTheDocument();
expect(result.getByTestId("expand-icon-for-sidebar-item-custom-resources")).toBeInTheDocument();
});
it("does not show SomeResources sidebar", () => {
@ -234,7 +234,7 @@ describe("cluster - custom resources in sidebar", () => {
});
it("shows Custom Resources sidebar as expandable", () => {
expect(result.getByTestId("sidebar-item-expand-icon-for-custom-resources")).toBeInTheDocument();
expect(result.getByTestId("expand-icon-for-sidebar-item-custom-resources")).toBeInTheDocument();
});
it("does not show Custom Resources Definitions sidebar", () => {

View File

@ -78,7 +78,7 @@ exports[`disable-cluster-pages-when-cluster-is-not-relevant given extension shou
>
<a
class="navItem"
data-testid="sidebar-item-link-for-workloads"
data-testid="link-for-sidebar-item-workloads"
href="/"
>
<i
@ -93,6 +93,7 @@ exports[`disable-cluster-pages-when-cluster-is-not-relevant given extension shou
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-workloads"
>
<span
class="icon"
@ -103,31 +104,6 @@ exports[`disable-cluster-pages-when-cluster-is-not-relevant given extension shou
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-config"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-config"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="list"
>
list
</span>
</i>
<span>
Config
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -135,7 +111,7 @@ exports[`disable-cluster-pages-when-cluster-is-not-relevant given extension shou
>
<a
class="navItem"
data-testid="sidebar-item-link-for-network"
data-testid="link-for-sidebar-item-network"
href="/"
>
<i
@ -153,6 +129,7 @@ exports[`disable-cluster-pages-when-cluster-is-not-relevant given extension shou
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-network"
>
<span
class="icon"
@ -163,31 +140,6 @@ exports[`disable-cluster-pages-when-cluster-is-not-relevant given extension shou
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-storage"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-storage"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="storage"
>
storage
</span>
</i>
<span>
Storage
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -195,7 +147,7 @@ exports[`disable-cluster-pages-when-cluster-is-not-relevant given extension shou
>
<a
class="navItem"
data-testid="sidebar-item-link-for-helm"
data-testid="link-for-sidebar-item-helm"
href="/"
>
<i
@ -210,66 +162,7 @@ exports[`disable-cluster-pages-when-cluster-is-not-relevant given extension shou
</span>
<i
class="Icon expandIcon material focusable"
>
<span
class="icon"
data-icon-name="keyboard_arrow_down"
>
keyboard_arrow_down
</span>
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-user-management"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-user-management"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="security"
>
security
</span>
</i>
<span>
Access Control
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-custom-resources"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-custom-resources"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="extension"
>
extension
</span>
</i>
<span>
Custom Resources
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-helm"
>
<span
class="icon"
@ -432,7 +325,7 @@ exports[`disable-cluster-pages-when-cluster-is-not-relevant given extension shou
<body>
<div>
<div
class="Animate slide-right Drawer KubeObjectDetails flex column right enter leave"
class="Animate slide-right Drawer KubeObjectDetails flex column right enter"
style="--size: 725px; --enter-duration: 100ms; --leave-duration: 100ms;"
>
<div
@ -507,7 +400,7 @@ exports[`disable-cluster-pages-when-cluster-is-not-relevant given extension shou
<a
aria-current="page"
class="navItem active"
data-testid="sidebar-item-link-for-workloads"
data-testid="link-for-sidebar-item-workloads"
href="/"
>
<i
@ -522,6 +415,7 @@ exports[`disable-cluster-pages-when-cluster-is-not-relevant given extension shou
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-workloads"
>
<span
class="icon"
@ -532,31 +426,6 @@ exports[`disable-cluster-pages-when-cluster-is-not-relevant given extension shou
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-config"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-config"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="list"
>
list
</span>
</i>
<span>
Config
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -564,7 +433,7 @@ exports[`disable-cluster-pages-when-cluster-is-not-relevant given extension shou
>
<a
class="navItem"
data-testid="sidebar-item-link-for-network"
data-testid="link-for-sidebar-item-network"
href="/"
>
<i
@ -582,6 +451,7 @@ exports[`disable-cluster-pages-when-cluster-is-not-relevant given extension shou
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-network"
>
<span
class="icon"
@ -592,31 +462,6 @@ exports[`disable-cluster-pages-when-cluster-is-not-relevant given extension shou
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-storage"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-storage"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="storage"
>
storage
</span>
</i>
<span>
Storage
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -624,7 +469,7 @@ exports[`disable-cluster-pages-when-cluster-is-not-relevant given extension shou
>
<a
class="navItem"
data-testid="sidebar-item-link-for-helm"
data-testid="link-for-sidebar-item-helm"
href="/"
>
<i
@ -639,66 +484,7 @@ exports[`disable-cluster-pages-when-cluster-is-not-relevant given extension shou
</span>
<i
class="Icon expandIcon material focusable"
>
<span
class="icon"
data-icon-name="keyboard_arrow_down"
>
keyboard_arrow_down
</span>
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-user-management"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-user-management"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="security"
>
security
</span>
</i>
<span>
Access Control
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-custom-resources"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-custom-resources"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="extension"
>
extension
</span>
</i>
<span>
Custom Resources
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-helm"
>
<span
class="icon"
@ -728,7 +514,7 @@ exports[`disable-cluster-pages-when-cluster-is-not-relevant given extension shou
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-testid="tab-link-for-overview"
data-testid="tab-link-for-sidebar-item-workloads-overview"
role="tab"
tabindex="0"
>
@ -982,7 +768,7 @@ exports[`disable-cluster-pages-when-cluster-is-not-relevant given not yet known
<body>
<div>
<div
class="Animate slide-right Drawer KubeObjectDetails flex column right enter leave"
class="Animate slide-right Drawer KubeObjectDetails flex column right enter"
style="--size: 725px; --enter-duration: 100ms; --leave-duration: 100ms;"
>
<div
@ -1057,7 +843,7 @@ exports[`disable-cluster-pages-when-cluster-is-not-relevant given not yet known
<a
aria-current="page"
class="navItem active"
data-testid="sidebar-item-link-for-workloads"
data-testid="link-for-sidebar-item-workloads"
href="/"
>
<i
@ -1072,6 +858,7 @@ exports[`disable-cluster-pages-when-cluster-is-not-relevant given not yet known
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-workloads"
>
<span
class="icon"
@ -1082,31 +869,6 @@ exports[`disable-cluster-pages-when-cluster-is-not-relevant given not yet known
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-config"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-config"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="list"
>
list
</span>
</i>
<span>
Config
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -1114,7 +876,7 @@ exports[`disable-cluster-pages-when-cluster-is-not-relevant given not yet known
>
<a
class="navItem"
data-testid="sidebar-item-link-for-network"
data-testid="link-for-sidebar-item-network"
href="/"
>
<i
@ -1132,6 +894,7 @@ exports[`disable-cluster-pages-when-cluster-is-not-relevant given not yet known
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-network"
>
<span
class="icon"
@ -1142,31 +905,6 @@ exports[`disable-cluster-pages-when-cluster-is-not-relevant given not yet known
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-storage"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-storage"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="storage"
>
storage
</span>
</i>
<span>
Storage
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -1174,7 +912,7 @@ exports[`disable-cluster-pages-when-cluster-is-not-relevant given not yet known
>
<a
class="navItem"
data-testid="sidebar-item-link-for-helm"
data-testid="link-for-sidebar-item-helm"
href="/"
>
<i
@ -1189,66 +927,7 @@ exports[`disable-cluster-pages-when-cluster-is-not-relevant given not yet known
</span>
<i
class="Icon expandIcon material focusable"
>
<span
class="icon"
data-icon-name="keyboard_arrow_down"
>
keyboard_arrow_down
</span>
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-user-management"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-user-management"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="security"
>
security
</span>
</i>
<span>
Access Control
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-custom-resources"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-custom-resources"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="extension"
>
extension
</span>
</i>
<span>
Custom Resources
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-helm"
>
<span
class="icon"
@ -1278,7 +957,7 @@ exports[`disable-cluster-pages-when-cluster-is-not-relevant given not yet known
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-testid="tab-link-for-overview"
data-testid="tab-link-for-sidebar-item-workloads-overview"
role="tab"
tabindex="0"
>

View File

@ -79,7 +79,7 @@ exports[`disable sidebar items when cluster is not relevant given extension shou
<a
aria-current="page"
class="navItem active"
data-testid="sidebar-item-link-for-workloads"
data-testid="link-for-sidebar-item-workloads"
href="/"
>
<i
@ -94,6 +94,7 @@ exports[`disable sidebar items when cluster is not relevant given extension shou
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-workloads"
>
<span
class="icon"
@ -104,31 +105,6 @@ exports[`disable sidebar items when cluster is not relevant given extension shou
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-config"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-config"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="list"
>
list
</span>
</i>
<span>
Config
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -136,7 +112,7 @@ exports[`disable sidebar items when cluster is not relevant given extension shou
>
<a
class="navItem"
data-testid="sidebar-item-link-for-network"
data-testid="link-for-sidebar-item-network"
href="/"
>
<i
@ -154,6 +130,7 @@ exports[`disable sidebar items when cluster is not relevant given extension shou
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-network"
>
<span
class="icon"
@ -164,31 +141,6 @@ exports[`disable sidebar items when cluster is not relevant given extension shou
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-storage"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-storage"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="storage"
>
storage
</span>
</i>
<span>
Storage
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -196,7 +148,7 @@ exports[`disable sidebar items when cluster is not relevant given extension shou
>
<a
class="navItem"
data-testid="sidebar-item-link-for-helm"
data-testid="link-for-sidebar-item-helm"
href="/"
>
<i
@ -211,6 +163,7 @@ exports[`disable sidebar items when cluster is not relevant given extension shou
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-helm"
>
<span
class="icon"
@ -224,71 +177,11 @@ exports[`disable sidebar items when cluster is not relevant given extension shou
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-user-management"
data-testid="sidebar-item-test-extension-sidebar-item-some"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-user-management"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="security"
>
security
</span>
</i>
<span>
Access Control
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-custom-resources"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-custom-resources"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="extension"
>
extension
</span>
</i>
<span>
Custom Resources
</span>
<i
class="Icon expandIcon material focusable"
>
<span
class="icon"
data-icon-name="keyboard_arrow_down"
>
keyboard_arrow_down
</span>
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-test-extension-some-sidebar-item"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-test-extension-some-sidebar-item"
data-testid="link-for-sidebar-item-test-extension-sidebar-item-some"
href="/"
>
<div>
@ -318,7 +211,7 @@ exports[`disable sidebar items when cluster is not relevant given extension shou
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-testid="tab-link-for-overview"
data-testid="tab-link-for-sidebar-item-workloads-overview"
role="tab"
tabindex="0"
>
@ -647,7 +540,7 @@ exports[`disable sidebar items when cluster is not relevant given extension shou
<a
aria-current="page"
class="navItem active"
data-testid="sidebar-item-link-for-workloads"
data-testid="link-for-sidebar-item-workloads"
href="/"
>
<i
@ -662,6 +555,7 @@ exports[`disable sidebar items when cluster is not relevant given extension shou
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-workloads"
>
<span
class="icon"
@ -672,31 +566,6 @@ exports[`disable sidebar items when cluster is not relevant given extension shou
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-config"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-config"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="list"
>
list
</span>
</i>
<span>
Config
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -704,7 +573,7 @@ exports[`disable sidebar items when cluster is not relevant given extension shou
>
<a
class="navItem"
data-testid="sidebar-item-link-for-network"
data-testid="link-for-sidebar-item-network"
href="/"
>
<i
@ -722,6 +591,7 @@ exports[`disable sidebar items when cluster is not relevant given extension shou
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-network"
>
<span
class="icon"
@ -732,31 +602,6 @@ exports[`disable sidebar items when cluster is not relevant given extension shou
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-storage"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-storage"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="storage"
>
storage
</span>
</i>
<span>
Storage
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -764,7 +609,7 @@ exports[`disable sidebar items when cluster is not relevant given extension shou
>
<a
class="navItem"
data-testid="sidebar-item-link-for-helm"
data-testid="link-for-sidebar-item-helm"
href="/"
>
<i
@ -779,66 +624,7 @@ exports[`disable sidebar items when cluster is not relevant given extension shou
</span>
<i
class="Icon expandIcon material focusable"
>
<span
class="icon"
data-icon-name="keyboard_arrow_down"
>
keyboard_arrow_down
</span>
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-user-management"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-user-management"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="security"
>
security
</span>
</i>
<span>
Access Control
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-custom-resources"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-custom-resources"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="extension"
>
extension
</span>
</i>
<span>
Custom Resources
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-helm"
>
<span
class="icon"
@ -868,7 +654,7 @@ exports[`disable sidebar items when cluster is not relevant given extension shou
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-testid="tab-link-for-overview"
data-testid="tab-link-for-sidebar-item-workloads-overview"
role="tab"
tabindex="0"
>
@ -1197,7 +983,7 @@ exports[`disable sidebar items when cluster is not relevant given not yet known
<a
aria-current="page"
class="navItem active"
data-testid="sidebar-item-link-for-workloads"
data-testid="link-for-sidebar-item-workloads"
href="/"
>
<i
@ -1212,6 +998,7 @@ exports[`disable sidebar items when cluster is not relevant given not yet known
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-workloads"
>
<span
class="icon"
@ -1222,31 +1009,6 @@ exports[`disable sidebar items when cluster is not relevant given not yet known
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-config"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-config"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="list"
>
list
</span>
</i>
<span>
Config
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -1254,7 +1016,7 @@ exports[`disable sidebar items when cluster is not relevant given not yet known
>
<a
class="navItem"
data-testid="sidebar-item-link-for-network"
data-testid="link-for-sidebar-item-network"
href="/"
>
<i
@ -1272,6 +1034,7 @@ exports[`disable sidebar items when cluster is not relevant given not yet known
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-network"
>
<span
class="icon"
@ -1282,31 +1045,6 @@ exports[`disable sidebar items when cluster is not relevant given not yet known
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-storage"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-storage"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="storage"
>
storage
</span>
</i>
<span>
Storage
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -1314,7 +1052,7 @@ exports[`disable sidebar items when cluster is not relevant given not yet known
>
<a
class="navItem"
data-testid="sidebar-item-link-for-helm"
data-testid="link-for-sidebar-item-helm"
href="/"
>
<i
@ -1329,66 +1067,7 @@ exports[`disable sidebar items when cluster is not relevant given not yet known
</span>
<i
class="Icon expandIcon material focusable"
>
<span
class="icon"
data-icon-name="keyboard_arrow_down"
>
keyboard_arrow_down
</span>
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-user-management"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-user-management"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="security"
>
security
</span>
</i>
<span>
Access Control
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-custom-resources"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-custom-resources"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="extension"
>
extension
</span>
</i>
<span>
Custom Resources
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-helm"
>
<span
class="icon"
@ -1418,7 +1097,7 @@ exports[`disable sidebar items when cluster is not relevant given not yet known
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-testid="tab-link-for-overview"
data-testid="tab-link-for-sidebar-item-workloads-overview"
role="tab"
tabindex="0"
>

View File

@ -9,6 +9,7 @@ import type { ApplicationBuilder } from "../../../renderer/components/test-utils
import { getApplicationBuilder } from "../../../renderer/components/test-utils/get-application-builder";
import type { KubernetesCluster } from "../../../common/catalog-entities";
import React from "react";
import { act } from "react-dom/test-utils";
describe("disable sidebar items when cluster is not relevant", () => {
let builder: ApplicationBuilder;
@ -59,17 +60,15 @@ describe("disable sidebar items when cluster is not relevant", () => {
});
it("does not show the sidebar item", () => {
const actual = rendered.queryByTestId(
"sidebar-item-sidebar-item-some-extension-name-some",
);
expect(actual).not.toBeInTheDocument();
expect(rendered.queryByTestId("sidebar-item-test-extension-sidebar-item-some")).not.toBeInTheDocument();
});
});
describe("given extension shouldn't be enabled for the cluster", () => {
beforeEach(async () => {
await isEnabledForClusterMock.resolve(false);
await act(async () => {
await isEnabledForClusterMock.resolve(false);
});
});
it("renders", () => {
@ -77,17 +76,15 @@ describe("disable sidebar items when cluster is not relevant", () => {
});
it("does not show the sidebar item", () => {
const actual = rendered.queryByTestId(
"sidebar-item-sidebar-item-some-extension-name-some",
);
expect(actual).not.toBeInTheDocument();
expect(rendered.queryByTestId("sidebar-item-test-extension-sidebar-item-some")).not.toBeInTheDocument();
});
});
describe("given extension should be enabled for the cluster", () => {
beforeEach(async () => {
await isEnabledForClusterMock.resolve(true);
await act(async () => {
await isEnabledForClusterMock.resolve(true);
});
});
it("renders", () => {
@ -95,11 +92,7 @@ describe("disable sidebar items when cluster is not relevant", () => {
});
it("shows the sidebar item", () => {
const actual = rendered.getByTestId(
"sidebar-item-sidebar-item-test-extension-some",
);
expect(actual).toBeInTheDocument();
expect(rendered.getByTestId("sidebar-item-test-extension-sidebar-item-some")).toBeInTheDocument();
});
});
});

View File

@ -150,7 +150,7 @@ exports[`disable kube object detail items when cluster is not relevant given ext
<a
aria-current="page"
class="navItem active"
data-testid="sidebar-item-link-for-workloads"
data-testid="link-for-sidebar-item-workloads"
href="/"
>
<i
@ -165,6 +165,7 @@ exports[`disable kube object detail items when cluster is not relevant given ext
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-workloads"
>
<span
class="icon"
@ -175,31 +176,6 @@ exports[`disable kube object detail items when cluster is not relevant given ext
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-config"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-config"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="list"
>
list
</span>
</i>
<span>
Config
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -207,7 +183,7 @@ exports[`disable kube object detail items when cluster is not relevant given ext
>
<a
class="navItem"
data-testid="sidebar-item-link-for-network"
data-testid="link-for-sidebar-item-network"
href="/"
>
<i
@ -225,6 +201,7 @@ exports[`disable kube object detail items when cluster is not relevant given ext
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-network"
>
<span
class="icon"
@ -235,31 +212,6 @@ exports[`disable kube object detail items when cluster is not relevant given ext
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-storage"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-storage"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="storage"
>
storage
</span>
</i>
<span>
Storage
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -267,7 +219,7 @@ exports[`disable kube object detail items when cluster is not relevant given ext
>
<a
class="navItem"
data-testid="sidebar-item-link-for-helm"
data-testid="link-for-sidebar-item-helm"
href="/"
>
<i
@ -282,66 +234,7 @@ exports[`disable kube object detail items when cluster is not relevant given ext
</span>
<i
class="Icon expandIcon material focusable"
>
<span
class="icon"
data-icon-name="keyboard_arrow_down"
>
keyboard_arrow_down
</span>
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-user-management"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-user-management"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="security"
>
security
</span>
</i>
<span>
Access Control
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-custom-resources"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-custom-resources"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="extension"
>
extension
</span>
</i>
<span>
Custom Resources
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-helm"
>
<span
class="icon"
@ -371,7 +264,7 @@ exports[`disable kube object detail items when cluster is not relevant given ext
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-testid="tab-link-for-overview"
data-testid="tab-link-for-sidebar-item-workloads-overview"
role="tab"
tabindex="0"
>
@ -766,7 +659,7 @@ exports[`disable kube object detail items when cluster is not relevant given ext
<a
aria-current="page"
class="navItem active"
data-testid="sidebar-item-link-for-workloads"
data-testid="link-for-sidebar-item-workloads"
href="/"
>
<i
@ -781,6 +674,7 @@ exports[`disable kube object detail items when cluster is not relevant given ext
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-workloads"
>
<span
class="icon"
@ -791,31 +685,6 @@ exports[`disable kube object detail items when cluster is not relevant given ext
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-config"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-config"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="list"
>
list
</span>
</i>
<span>
Config
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -823,7 +692,7 @@ exports[`disable kube object detail items when cluster is not relevant given ext
>
<a
class="navItem"
data-testid="sidebar-item-link-for-network"
data-testid="link-for-sidebar-item-network"
href="/"
>
<i
@ -841,6 +710,7 @@ exports[`disable kube object detail items when cluster is not relevant given ext
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-network"
>
<span
class="icon"
@ -851,31 +721,6 @@ exports[`disable kube object detail items when cluster is not relevant given ext
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-storage"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-storage"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="storage"
>
storage
</span>
</i>
<span>
Storage
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -883,7 +728,7 @@ exports[`disable kube object detail items when cluster is not relevant given ext
>
<a
class="navItem"
data-testid="sidebar-item-link-for-helm"
data-testid="link-for-sidebar-item-helm"
href="/"
>
<i
@ -898,66 +743,7 @@ exports[`disable kube object detail items when cluster is not relevant given ext
</span>
<i
class="Icon expandIcon material focusable"
>
<span
class="icon"
data-icon-name="keyboard_arrow_down"
>
keyboard_arrow_down
</span>
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-user-management"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-user-management"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="security"
>
security
</span>
</i>
<span>
Access Control
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-custom-resources"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-custom-resources"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="extension"
>
extension
</span>
</i>
<span>
Custom Resources
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-helm"
>
<span
class="icon"
@ -987,7 +773,7 @@ exports[`disable kube object detail items when cluster is not relevant given ext
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-testid="tab-link-for-overview"
data-testid="tab-link-for-sidebar-item-workloads-overview"
role="tab"
tabindex="0"
>
@ -1382,7 +1168,7 @@ exports[`disable kube object detail items when cluster is not relevant given not
<a
aria-current="page"
class="navItem active"
data-testid="sidebar-item-link-for-workloads"
data-testid="link-for-sidebar-item-workloads"
href="/"
>
<i
@ -1397,6 +1183,7 @@ exports[`disable kube object detail items when cluster is not relevant given not
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-workloads"
>
<span
class="icon"
@ -1407,31 +1194,6 @@ exports[`disable kube object detail items when cluster is not relevant given not
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-config"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-config"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="list"
>
list
</span>
</i>
<span>
Config
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -1439,7 +1201,7 @@ exports[`disable kube object detail items when cluster is not relevant given not
>
<a
class="navItem"
data-testid="sidebar-item-link-for-network"
data-testid="link-for-sidebar-item-network"
href="/"
>
<i
@ -1457,6 +1219,7 @@ exports[`disable kube object detail items when cluster is not relevant given not
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-network"
>
<span
class="icon"
@ -1467,31 +1230,6 @@ exports[`disable kube object detail items when cluster is not relevant given not
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-storage"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-storage"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="storage"
>
storage
</span>
</i>
<span>
Storage
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -1499,7 +1237,7 @@ exports[`disable kube object detail items when cluster is not relevant given not
>
<a
class="navItem"
data-testid="sidebar-item-link-for-helm"
data-testid="link-for-sidebar-item-helm"
href="/"
>
<i
@ -1514,66 +1252,7 @@ exports[`disable kube object detail items when cluster is not relevant given not
</span>
<i
class="Icon expandIcon material focusable"
>
<span
class="icon"
data-icon-name="keyboard_arrow_down"
>
keyboard_arrow_down
</span>
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-user-management"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-user-management"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="security"
>
security
</span>
</i>
<span>
Access Control
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-custom-resources"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-custom-resources"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="extension"
>
extension
</span>
</i>
<span>
Custom Resources
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-helm"
>
<span
class="icon"
@ -1603,7 +1282,7 @@ exports[`disable kube object detail items when cluster is not relevant given not
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-testid="tab-link-for-overview"
data-testid="tab-link-for-sidebar-item-workloads-overview"
role="tab"
tabindex="0"
>

View File

@ -145,7 +145,7 @@ exports[`reactively hide kube object detail item renders 1`] = `
<a
aria-current="page"
class="navItem active"
data-testid="sidebar-item-link-for-workloads"
data-testid="link-for-sidebar-item-workloads"
href="/"
>
<i
@ -160,6 +160,7 @@ exports[`reactively hide kube object detail item renders 1`] = `
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-workloads"
>
<span
class="icon"
@ -170,31 +171,6 @@ exports[`reactively hide kube object detail item renders 1`] = `
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-config"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-config"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="list"
>
list
</span>
</i>
<span>
Config
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -202,7 +178,7 @@ exports[`reactively hide kube object detail item renders 1`] = `
>
<a
class="navItem"
data-testid="sidebar-item-link-for-network"
data-testid="link-for-sidebar-item-network"
href="/"
>
<i
@ -220,6 +196,7 @@ exports[`reactively hide kube object detail item renders 1`] = `
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-network"
>
<span
class="icon"
@ -230,31 +207,6 @@ exports[`reactively hide kube object detail item renders 1`] = `
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-storage"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-storage"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="storage"
>
storage
</span>
</i>
<span>
Storage
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -262,7 +214,7 @@ exports[`reactively hide kube object detail item renders 1`] = `
>
<a
class="navItem"
data-testid="sidebar-item-link-for-helm"
data-testid="link-for-sidebar-item-helm"
href="/"
>
<i
@ -277,66 +229,7 @@ exports[`reactively hide kube object detail item renders 1`] = `
</span>
<i
class="Icon expandIcon material focusable"
>
<span
class="icon"
data-icon-name="keyboard_arrow_down"
>
keyboard_arrow_down
</span>
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-user-management"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-user-management"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="security"
>
security
</span>
</i>
<span>
Access Control
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-custom-resources"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-custom-resources"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="extension"
>
extension
</span>
</i>
<span>
Custom Resources
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-helm"
>
<span
class="icon"
@ -366,7 +259,7 @@ exports[`reactively hide kube object detail item renders 1`] = `
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-testid="tab-link-for-overview"
data-testid="tab-link-for-sidebar-item-workloads-overview"
role="tab"
tabindex="0"
>
@ -766,7 +659,7 @@ exports[`reactively hide kube object detail item when the item is shown renders
<a
aria-current="page"
class="navItem active"
data-testid="sidebar-item-link-for-workloads"
data-testid="link-for-sidebar-item-workloads"
href="/"
>
<i
@ -781,6 +674,7 @@ exports[`reactively hide kube object detail item when the item is shown renders
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-workloads"
>
<span
class="icon"
@ -791,31 +685,6 @@ exports[`reactively hide kube object detail item when the item is shown renders
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-config"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-config"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="list"
>
list
</span>
</i>
<span>
Config
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -823,7 +692,7 @@ exports[`reactively hide kube object detail item when the item is shown renders
>
<a
class="navItem"
data-testid="sidebar-item-link-for-network"
data-testid="link-for-sidebar-item-network"
href="/"
>
<i
@ -841,6 +710,7 @@ exports[`reactively hide kube object detail item when the item is shown renders
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-network"
>
<span
class="icon"
@ -851,31 +721,6 @@ exports[`reactively hide kube object detail item when the item is shown renders
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-storage"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-storage"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="storage"
>
storage
</span>
</i>
<span>
Storage
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -883,7 +728,7 @@ exports[`reactively hide kube object detail item when the item is shown renders
>
<a
class="navItem"
data-testid="sidebar-item-link-for-helm"
data-testid="link-for-sidebar-item-helm"
href="/"
>
<i
@ -898,66 +743,7 @@ exports[`reactively hide kube object detail item when the item is shown renders
</span>
<i
class="Icon expandIcon material focusable"
>
<span
class="icon"
data-icon-name="keyboard_arrow_down"
>
keyboard_arrow_down
</span>
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-user-management"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-user-management"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="security"
>
security
</span>
</i>
<span>
Access Control
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-custom-resources"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-custom-resources"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="extension"
>
extension
</span>
</i>
<span>
Custom Resources
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-helm"
>
<span
class="icon"
@ -987,7 +773,7 @@ exports[`reactively hide kube object detail item when the item is shown renders
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-testid="tab-link-for-overview"
data-testid="tab-link-for-sidebar-item-workloads-overview"
role="tab"
tabindex="0"
>

View File

@ -78,7 +78,7 @@ exports[`disable kube object menu items when cluster is not relevant given exten
>
<a
class="navItem"
data-testid="sidebar-item-link-for-workloads"
data-testid="link-for-sidebar-item-workloads"
href="/"
>
<i
@ -93,6 +93,7 @@ exports[`disable kube object menu items when cluster is not relevant given exten
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-workloads"
>
<span
class="icon"
@ -103,31 +104,6 @@ exports[`disable kube object menu items when cluster is not relevant given exten
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-config"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-config"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="list"
>
list
</span>
</i>
<span>
Config
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -135,7 +111,7 @@ exports[`disable kube object menu items when cluster is not relevant given exten
>
<a
class="navItem"
data-testid="sidebar-item-link-for-network"
data-testid="link-for-sidebar-item-network"
href="/"
>
<i
@ -153,6 +129,7 @@ exports[`disable kube object menu items when cluster is not relevant given exten
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-network"
>
<span
class="icon"
@ -163,31 +140,6 @@ exports[`disable kube object menu items when cluster is not relevant given exten
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-storage"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-storage"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="storage"
>
storage
</span>
</i>
<span>
Storage
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -195,7 +147,7 @@ exports[`disable kube object menu items when cluster is not relevant given exten
>
<a
class="navItem"
data-testid="sidebar-item-link-for-helm"
data-testid="link-for-sidebar-item-helm"
href="/"
>
<i
@ -210,66 +162,7 @@ exports[`disable kube object menu items when cluster is not relevant given exten
</span>
<i
class="Icon expandIcon material focusable"
>
<span
class="icon"
data-icon-name="keyboard_arrow_down"
>
keyboard_arrow_down
</span>
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-user-management"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-user-management"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="security"
>
security
</span>
</i>
<span>
Access Control
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-custom-resources"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-custom-resources"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="extension"
>
extension
</span>
</i>
<span>
Custom Resources
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-helm"
>
<span
class="icon"
@ -512,7 +405,7 @@ exports[`disable kube object menu items when cluster is not relevant given exten
>
<a
class="navItem"
data-testid="sidebar-item-link-for-workloads"
data-testid="link-for-sidebar-item-workloads"
href="/"
>
<i
@ -527,6 +420,7 @@ exports[`disable kube object menu items when cluster is not relevant given exten
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-workloads"
>
<span
class="icon"
@ -537,31 +431,6 @@ exports[`disable kube object menu items when cluster is not relevant given exten
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-config"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-config"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="list"
>
list
</span>
</i>
<span>
Config
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -569,7 +438,7 @@ exports[`disable kube object menu items when cluster is not relevant given exten
>
<a
class="navItem"
data-testid="sidebar-item-link-for-network"
data-testid="link-for-sidebar-item-network"
href="/"
>
<i
@ -587,6 +456,7 @@ exports[`disable kube object menu items when cluster is not relevant given exten
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-network"
>
<span
class="icon"
@ -597,31 +467,6 @@ exports[`disable kube object menu items when cluster is not relevant given exten
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-storage"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-storage"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="storage"
>
storage
</span>
</i>
<span>
Storage
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -629,7 +474,7 @@ exports[`disable kube object menu items when cluster is not relevant given exten
>
<a
class="navItem"
data-testid="sidebar-item-link-for-helm"
data-testid="link-for-sidebar-item-helm"
href="/"
>
<i
@ -644,66 +489,7 @@ exports[`disable kube object menu items when cluster is not relevant given exten
</span>
<i
class="Icon expandIcon material focusable"
>
<span
class="icon"
data-icon-name="keyboard_arrow_down"
>
keyboard_arrow_down
</span>
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-user-management"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-user-management"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="security"
>
security
</span>
</i>
<span>
Access Control
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-custom-resources"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-custom-resources"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="extension"
>
extension
</span>
</i>
<span>
Custom Resources
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-helm"
>
<span
class="icon"
@ -940,7 +726,7 @@ exports[`disable kube object menu items when cluster is not relevant given not y
>
<a
class="navItem"
data-testid="sidebar-item-link-for-workloads"
data-testid="link-for-sidebar-item-workloads"
href="/"
>
<i
@ -955,6 +741,7 @@ exports[`disable kube object menu items when cluster is not relevant given not y
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-workloads"
>
<span
class="icon"
@ -965,31 +752,6 @@ exports[`disable kube object menu items when cluster is not relevant given not y
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-config"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-config"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="list"
>
list
</span>
</i>
<span>
Config
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -997,7 +759,7 @@ exports[`disable kube object menu items when cluster is not relevant given not y
>
<a
class="navItem"
data-testid="sidebar-item-link-for-network"
data-testid="link-for-sidebar-item-network"
href="/"
>
<i
@ -1015,6 +777,7 @@ exports[`disable kube object menu items when cluster is not relevant given not y
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-network"
>
<span
class="icon"
@ -1025,31 +788,6 @@ exports[`disable kube object menu items when cluster is not relevant given not y
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-storage"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-storage"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="storage"
>
storage
</span>
</i>
<span>
Storage
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -1057,7 +795,7 @@ exports[`disable kube object menu items when cluster is not relevant given not y
>
<a
class="navItem"
data-testid="sidebar-item-link-for-helm"
data-testid="link-for-sidebar-item-helm"
href="/"
>
<i
@ -1072,66 +810,7 @@ exports[`disable kube object menu items when cluster is not relevant given not y
</span>
<i
class="Icon expandIcon material focusable"
>
<span
class="icon"
data-icon-name="keyboard_arrow_down"
>
keyboard_arrow_down
</span>
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-user-management"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-user-management"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="security"
>
security
</span>
</i>
<span>
Access Control
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-custom-resources"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-custom-resources"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="extension"
>
extension
</span>
</i>
<span>
Custom Resources
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-helm"
>
<span
class="icon"

View File

@ -78,7 +78,7 @@ exports[`disable kube object statuses when cluster is not relevant given extensi
>
<a
class="navItem"
data-testid="sidebar-item-link-for-workloads"
data-testid="link-for-sidebar-item-workloads"
href="/"
>
<i
@ -93,6 +93,7 @@ exports[`disable kube object statuses when cluster is not relevant given extensi
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-workloads"
>
<span
class="icon"
@ -103,31 +104,6 @@ exports[`disable kube object statuses when cluster is not relevant given extensi
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-config"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-config"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="list"
>
list
</span>
</i>
<span>
Config
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -135,7 +111,7 @@ exports[`disable kube object statuses when cluster is not relevant given extensi
>
<a
class="navItem"
data-testid="sidebar-item-link-for-network"
data-testid="link-for-sidebar-item-network"
href="/"
>
<i
@ -153,6 +129,7 @@ exports[`disable kube object statuses when cluster is not relevant given extensi
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-network"
>
<span
class="icon"
@ -163,31 +140,6 @@ exports[`disable kube object statuses when cluster is not relevant given extensi
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-storage"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-storage"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="storage"
>
storage
</span>
</i>
<span>
Storage
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -195,7 +147,7 @@ exports[`disable kube object statuses when cluster is not relevant given extensi
>
<a
class="navItem"
data-testid="sidebar-item-link-for-helm"
data-testid="link-for-sidebar-item-helm"
href="/"
>
<i
@ -210,66 +162,7 @@ exports[`disable kube object statuses when cluster is not relevant given extensi
</span>
<i
class="Icon expandIcon material focusable"
>
<span
class="icon"
data-icon-name="keyboard_arrow_down"
>
keyboard_arrow_down
</span>
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-user-management"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-user-management"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="security"
>
security
</span>
</i>
<span>
Access Control
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-custom-resources"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-custom-resources"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="extension"
>
extension
</span>
</i>
<span>
Custom Resources
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-helm"
>
<span
class="icon"
@ -540,7 +433,7 @@ exports[`disable kube object statuses when cluster is not relevant given extensi
>
<a
class="navItem"
data-testid="sidebar-item-link-for-workloads"
data-testid="link-for-sidebar-item-workloads"
href="/"
>
<i
@ -555,6 +448,7 @@ exports[`disable kube object statuses when cluster is not relevant given extensi
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-workloads"
>
<span
class="icon"
@ -565,31 +459,6 @@ exports[`disable kube object statuses when cluster is not relevant given extensi
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-config"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-config"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="list"
>
list
</span>
</i>
<span>
Config
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -597,7 +466,7 @@ exports[`disable kube object statuses when cluster is not relevant given extensi
>
<a
class="navItem"
data-testid="sidebar-item-link-for-network"
data-testid="link-for-sidebar-item-network"
href="/"
>
<i
@ -615,6 +484,7 @@ exports[`disable kube object statuses when cluster is not relevant given extensi
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-network"
>
<span
class="icon"
@ -625,31 +495,6 @@ exports[`disable kube object statuses when cluster is not relevant given extensi
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-storage"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-storage"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="storage"
>
storage
</span>
</i>
<span>
Storage
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -657,7 +502,7 @@ exports[`disable kube object statuses when cluster is not relevant given extensi
>
<a
class="navItem"
data-testid="sidebar-item-link-for-helm"
data-testid="link-for-sidebar-item-helm"
href="/"
>
<i
@ -672,66 +517,7 @@ exports[`disable kube object statuses when cluster is not relevant given extensi
</span>
<i
class="Icon expandIcon material focusable"
>
<span
class="icon"
data-icon-name="keyboard_arrow_down"
>
keyboard_arrow_down
</span>
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-user-management"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-user-management"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="security"
>
security
</span>
</i>
<span>
Access Control
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-custom-resources"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-custom-resources"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="extension"
>
extension
</span>
</i>
<span>
Custom Resources
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-helm"
>
<span
class="icon"
@ -962,7 +748,7 @@ exports[`disable kube object statuses when cluster is not relevant given not yet
>
<a
class="navItem"
data-testid="sidebar-item-link-for-workloads"
data-testid="link-for-sidebar-item-workloads"
href="/"
>
<i
@ -977,6 +763,7 @@ exports[`disable kube object statuses when cluster is not relevant given not yet
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-workloads"
>
<span
class="icon"
@ -987,31 +774,6 @@ exports[`disable kube object statuses when cluster is not relevant given not yet
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-config"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-config"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="list"
>
list
</span>
</i>
<span>
Config
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -1019,7 +781,7 @@ exports[`disable kube object statuses when cluster is not relevant given not yet
>
<a
class="navItem"
data-testid="sidebar-item-link-for-network"
data-testid="link-for-sidebar-item-network"
href="/"
>
<i
@ -1037,6 +799,7 @@ exports[`disable kube object statuses when cluster is not relevant given not yet
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-network"
>
<span
class="icon"
@ -1047,31 +810,6 @@ exports[`disable kube object statuses when cluster is not relevant given not yet
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-storage"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-storage"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="storage"
>
storage
</span>
</i>
<span>
Storage
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -1079,7 +817,7 @@ exports[`disable kube object statuses when cluster is not relevant given not yet
>
<a
class="navItem"
data-testid="sidebar-item-link-for-helm"
data-testid="link-for-sidebar-item-helm"
href="/"
>
<i
@ -1094,66 +832,7 @@ exports[`disable kube object statuses when cluster is not relevant given not yet
</span>
<i
class="Icon expandIcon material focusable"
>
<span
class="icon"
data-icon-name="keyboard_arrow_down"
>
keyboard_arrow_down
</span>
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-user-management"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-user-management"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="security"
>
security
</span>
</i>
<span>
Access Control
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-custom-resources"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-custom-resources"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="extension"
>
extension
</span>
</i>
<span>
Custom Resources
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-helm"
>
<span
class="icon"

View File

@ -79,7 +79,7 @@ exports[`cluster/namespaces - edit namespaces from previously opened tab given t
<a
aria-current="page"
class="navItem active"
data-testid="sidebar-item-link-for-workloads"
data-testid="link-for-sidebar-item-workloads"
href="/"
>
<i
@ -94,6 +94,7 @@ exports[`cluster/namespaces - edit namespaces from previously opened tab given t
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-workloads"
>
<span
class="icon"
@ -104,31 +105,6 @@ exports[`cluster/namespaces - edit namespaces from previously opened tab given t
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-config"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-config"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="list"
>
list
</span>
</i>
<span>
Config
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -136,7 +112,7 @@ exports[`cluster/namespaces - edit namespaces from previously opened tab given t
>
<a
class="navItem"
data-testid="sidebar-item-link-for-network"
data-testid="link-for-sidebar-item-network"
href="/"
>
<i
@ -154,6 +130,7 @@ exports[`cluster/namespaces - edit namespaces from previously opened tab given t
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-network"
>
<span
class="icon"
@ -164,31 +141,6 @@ exports[`cluster/namespaces - edit namespaces from previously opened tab given t
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-storage"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-storage"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="storage"
>
storage
</span>
</i>
<span>
Storage
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -196,7 +148,7 @@ exports[`cluster/namespaces - edit namespaces from previously opened tab given t
>
<a
class="navItem"
data-testid="sidebar-item-link-for-namespaces"
data-testid="link-for-sidebar-item-namespaces"
href="/"
>
<i
@ -221,7 +173,7 @@ exports[`cluster/namespaces - edit namespaces from previously opened tab given t
>
<a
class="navItem"
data-testid="sidebar-item-link-for-helm"
data-testid="link-for-sidebar-item-helm"
href="/"
>
<i
@ -236,66 +188,7 @@ exports[`cluster/namespaces - edit namespaces from previously opened tab given t
</span>
<i
class="Icon expandIcon material focusable"
>
<span
class="icon"
data-icon-name="keyboard_arrow_down"
>
keyboard_arrow_down
</span>
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-user-management"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-user-management"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="security"
>
security
</span>
</i>
<span>
Access Control
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-custom-resources"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-custom-resources"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="extension"
>
extension
</span>
</i>
<span>
Custom Resources
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-helm"
>
<span
class="icon"
@ -325,7 +218,7 @@ exports[`cluster/namespaces - edit namespaces from previously opened tab given t
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-testid="tab-link-for-overview"
data-testid="tab-link-for-sidebar-item-workloads-overview"
role="tab"
tabindex="0"
>
@ -664,7 +557,7 @@ exports[`cluster/namespaces - edit namespaces from previously opened tab given t
<a
aria-current="page"
class="navItem active"
data-testid="sidebar-item-link-for-workloads"
data-testid="link-for-sidebar-item-workloads"
href="/"
>
<i
@ -679,6 +572,7 @@ exports[`cluster/namespaces - edit namespaces from previously opened tab given t
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-workloads"
>
<span
class="icon"
@ -689,31 +583,6 @@ exports[`cluster/namespaces - edit namespaces from previously opened tab given t
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-config"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-config"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="list"
>
list
</span>
</i>
<span>
Config
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -721,7 +590,7 @@ exports[`cluster/namespaces - edit namespaces from previously opened tab given t
>
<a
class="navItem"
data-testid="sidebar-item-link-for-network"
data-testid="link-for-sidebar-item-network"
href="/"
>
<i
@ -739,6 +608,7 @@ exports[`cluster/namespaces - edit namespaces from previously opened tab given t
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-network"
>
<span
class="icon"
@ -749,31 +619,6 @@ exports[`cluster/namespaces - edit namespaces from previously opened tab given t
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-storage"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-storage"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="storage"
>
storage
</span>
</i>
<span>
Storage
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -781,7 +626,7 @@ exports[`cluster/namespaces - edit namespaces from previously opened tab given t
>
<a
class="navItem"
data-testid="sidebar-item-link-for-namespaces"
data-testid="link-for-sidebar-item-namespaces"
href="/"
>
<i
@ -806,7 +651,7 @@ exports[`cluster/namespaces - edit namespaces from previously opened tab given t
>
<a
class="navItem"
data-testid="sidebar-item-link-for-helm"
data-testid="link-for-sidebar-item-helm"
href="/"
>
<i
@ -821,66 +666,7 @@ exports[`cluster/namespaces - edit namespaces from previously opened tab given t
</span>
<i
class="Icon expandIcon material focusable"
>
<span
class="icon"
data-icon-name="keyboard_arrow_down"
>
keyboard_arrow_down
</span>
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-user-management"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-user-management"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="security"
>
security
</span>
</i>
<span>
Access Control
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-custom-resources"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-custom-resources"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="extension"
>
extension
</span>
</i>
<span>
Custom Resources
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-helm"
>
<span
class="icon"
@ -910,7 +696,7 @@ exports[`cluster/namespaces - edit namespaces from previously opened tab given t
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-testid="tab-link-for-overview"
data-testid="tab-link-for-sidebar-item-workloads-overview"
role="tab"
tabindex="0"
>

View File

@ -1,151 +0,0 @@
/**
* Copyright (c) OpenLens Authors. All rights reserved.
* Licensed under MIT License. See LICENSE in root directory for more information.
*/
import { getInjectable } from "@ogre-tools/injectable";
import type { RenderResult } from "@testing-library/react";
import { fireEvent } from "@testing-library/react";
import { sidebarItemInjectionToken } from "@k8slens/cluster-sidebar";
import { runInAction } from "mobx";
import { noop } from "lodash/fp";
import type { ApplicationBuilder } from "../../renderer/components/test-utils/get-application-builder";
import { getApplicationBuilder } from "../../renderer/components/test-utils/get-application-builder";
describe("cluster - order of sidebar items", () => {
let rendered: RenderResult;
let builder: ApplicationBuilder;
beforeEach(() => {
builder = getApplicationBuilder();
builder.setEnvironmentToClusterFrame();
builder.beforeWindowStart(({ windowDi }) => {
runInAction(() => {
windowDi.register(
someParentSidebarItemInjectable,
someOtherParentSidebarItemInjectable,
someAnotherParentSidebarItemInjectable,
someChildSidebarItemInjectable,
someOtherChildSidebarItemInjectable,
someAnotherChildSidebarItemInjectable,
);
});
});
});
describe("when rendered", () => {
beforeEach(async () => {
rendered = await builder.render();
});
it("renders", () => {
expect(rendered.container).toMatchSnapshot();
});
it("has parent items in order", () => {
const actual = rendered
.queryAllByTestId(/^sidebar-item-(some-parent-id|some-other-parent-id|some-another-parent-id)/)
.map(elem => elem.dataset.testid);
expect(actual).toEqual([
"sidebar-item-some-parent-id",
"sidebar-item-some-another-parent-id",
"sidebar-item-some-other-parent-id",
]);
});
describe("when parent is expanded", () => {
beforeEach(() => {
const parentLink = rendered.getByTestId(
"sidebar-item-link-for-some-parent-id",
);
fireEvent.click(parentLink);
});
it("renders", () => {
expect(rendered.container).toMatchSnapshot();
});
it("has child items in order", () => {
const actual = rendered
.queryAllByTestId(/^sidebar-item-*/)
.filter((element) => element.dataset.parentIdTest === "some-parent-id")
.map(elem => elem.dataset.testid);
expect(actual).toEqual([
"sidebar-item-some-child-id",
"sidebar-item-some-another-child-id",
"sidebar-item-some-other-child-id",
]);
});
});
});
});
const someParentSidebarItemInjectable = getInjectable({
id: "sidebar-item-some-parent",
instantiate: () => ({
parentId: null,
title: "Some parent",
onClick: noop,
orderNumber: 42,
}),
injectionToken: sidebarItemInjectionToken,
});
const someOtherParentSidebarItemInjectable = getInjectable({
id: "sidebar-item-some-other-parent",
instantiate: () => ({
parentId: null,
title: "Some other parent",
onClick: noop,
orderNumber: 126,
}),
injectionToken: sidebarItemInjectionToken,
});
const someAnotherParentSidebarItemInjectable = getInjectable({
id: "sidebar-item-some-another-parent",
instantiate: () => ({
parentId: null,
title: "Some another parent",
onClick: noop,
orderNumber: 84,
}),
injectionToken: sidebarItemInjectionToken,
});
const someChildSidebarItemInjectable = getInjectable({
id: "sidebar-item-some-child",
instantiate: () => ({
parentId: someParentSidebarItemInjectable.id,
title: "Some child",
onClick: noop,
orderNumber: 168,
}),
injectionToken: sidebarItemInjectionToken,
});
const someOtherChildSidebarItemInjectable = getInjectable({
id: "sidebar-item-some-other-child",
instantiate: () => ({
parentId: someParentSidebarItemInjectable.id,
title: "Some other child",
onClick: noop,
orderNumber: 252,
}),
injectionToken: sidebarItemInjectionToken,
});
const someAnotherChildSidebarItemInjectable = getInjectable({
id: "sidebar-item-some-another-child",
instantiate: () => ({
parentId: someParentSidebarItemInjectable.id,
title: "Some another child",
onClick: noop,
orderNumber: 210,
}),
injectionToken: sidebarItemInjectionToken,
});

View File

@ -70,13 +70,13 @@ describe("cluster - sidebar and tab navigation for core", () => {
});
it("parent is highlighted", () => {
const parent = rendered.queryByTestId("sidebar-item-some-parent-id");
const parent = rendered.queryByTestId("sidebar-item-some-parent");
expect(parent?.dataset.isActiveTest).toBe("true");
});
it("parent sidebar item is not expanded", () => {
const child = rendered.queryByTestId("sidebar-item-some-child-id");
const child = rendered.queryByTestId("sidebar-item-some-child");
expect(child).toBeNull();
});
@ -95,7 +95,7 @@ describe("cluster - sidebar and tab navigation for core", () => {
"/some-directory-for-app-data/some-product-name/lens-local-storage/some-cluster-id.json",
{
sidebar: {
expanded: { "some-parent-id": true },
expanded: { "sidebar-item-some-parent": true },
width: 200,
},
},
@ -110,13 +110,13 @@ describe("cluster - sidebar and tab navigation for core", () => {
});
it("parent sidebar item is not highlighted", () => {
const parent = rendered.queryByTestId("sidebar-item-some-parent-id");
const parent = rendered.queryByTestId("sidebar-item-some-parent");
expect(parent?.dataset.isActiveTest).toBe("false");
});
it("parent sidebar item is expanded", () => {
const child = rendered.queryByTestId("sidebar-item-some-child-id");
const child = rendered.queryByTestId("sidebar-item-some-child");
expect(child).not.toBeNull();
});
@ -146,7 +146,7 @@ describe("cluster - sidebar and tab navigation for core", () => {
});
it("parent sidebar item is not expanded", () => {
const child = rendered.queryByTestId("sidebar-item-some-child-id");
const child = rendered.queryByTestId("sidebar-item-some-child");
expect(child).toBeNull();
});
@ -173,7 +173,7 @@ describe("cluster - sidebar and tab navigation for core", () => {
});
it("parent sidebar item is not expanded", () => {
const child = rendered.queryByTestId("sidebar-item-some-child-id");
const child = rendered.queryByTestId("sidebar-item-some-child");
expect(child).toBeNull();
});
@ -193,13 +193,13 @@ describe("cluster - sidebar and tab navigation for core", () => {
});
it("parent sidebar item is not highlighted", () => {
const parent = rendered.queryByTestId("sidebar-item-some-parent-id");
const parent = rendered.queryByTestId("sidebar-item-some-parent");
expect(parent?.dataset.isActiveTest).toBe("false");
});
it("parent sidebar item is not expanded", () => {
const child = rendered.queryByTestId("sidebar-item-some-child-id");
const child = rendered.queryByTestId("sidebar-item-some-child");
expect(child).toBeNull();
});
@ -207,7 +207,7 @@ describe("cluster - sidebar and tab navigation for core", () => {
describe("when a parent sidebar item is expanded", () => {
beforeEach(() => {
const parentLink = rendered.getByTestId(
"sidebar-item-link-for-some-parent-id",
"link-for-sidebar-item-some-parent",
);
fireEvent.click(parentLink);
@ -218,13 +218,13 @@ describe("cluster - sidebar and tab navigation for core", () => {
});
it("parent sidebar item is not highlighted", () => {
const parent = rendered.queryByTestId("sidebar-item-some-parent-id");
const parent = rendered.queryByTestId("sidebar-item-some-parent");
expect(parent?.dataset.isActiveTest).toBe("false");
});
it("parent sidebar item is expanded", () => {
const child = rendered.queryByTestId("sidebar-item-some-child-id");
const child = rendered.queryByTestId("sidebar-item-some-child");
expect(child).not.toBeNull();
});
@ -232,7 +232,7 @@ describe("cluster - sidebar and tab navigation for core", () => {
describe("when a child of the parent is selected", () => {
beforeEach(() => {
const childLink = rendered.getByTestId(
"sidebar-item-link-for-some-child-id",
"link-for-sidebar-item-some-child",
);
fireEvent.click(childLink);
@ -243,13 +243,13 @@ describe("cluster - sidebar and tab navigation for core", () => {
});
it("parent is highlighted", () => {
const parent = rendered.queryByTestId("sidebar-item-some-parent-id");
const parent = rendered.queryByTestId("sidebar-item-some-parent");
expect(parent?.dataset.isActiveTest).toBe("true");
});
it("child is highlighted", () => {
const child = rendered.queryByTestId("sidebar-item-some-child-id");
const child = rendered.queryByTestId("sidebar-item-some-child");
expect(child?.dataset.isActiveTest).toBe("true");
});
@ -283,7 +283,7 @@ describe("cluster - sidebar and tab navigation for core", () => {
expect(actual).toEqual({
sidebar: {
expanded: { "some-parent-id": true },
expanded: { "sidebar-item-some-parent": true },
width: 200,
},
});

View File

@ -178,7 +178,7 @@ describe("cluster - sidebar and tab navigation for extensions", () => {
"/some-directory-for-lens-local-storage/some-cluster-id.json",
{
sidebar: {
expanded: { "some-extension-name-some-parent-id": true },
expanded: { "sidebar-item-some-extension-name-some-parent-id": true },
width: 200,
},
},
@ -310,7 +310,7 @@ describe("cluster - sidebar and tab navigation for extensions", () => {
describe("when a parent sidebar item is expanded", () => {
beforeEach(() => {
const parentLink = rendered.getByTestId(
"sidebar-item-link-for-some-extension-name-some-parent-id",
"link-for-sidebar-item-some-extension-name-some-parent-id",
);
fireEvent.click(parentLink);
@ -335,7 +335,7 @@ describe("cluster - sidebar and tab navigation for extensions", () => {
describe("when a child of the parent is selected", () => {
beforeEach(() => {
const childLink = rendered.getByTestId(
"sidebar-item-link-for-some-extension-name-some-child-id",
"link-for-sidebar-item-some-extension-name-some-child-id",
);
fireEvent.click(childLink);
@ -367,7 +367,7 @@ describe("cluster - sidebar and tab navigation for extensions", () => {
it("tab for child page is active", () => {
const tabLink = rendered.getByTestId(
"tab-link-for-some-extension-name-some-child-id",
"tab-link-for-sidebar-item-some-extension-name-some-child-id",
);
expect(tabLink.dataset.isActiveTest).toBe("true");
@ -375,7 +375,7 @@ describe("cluster - sidebar and tab navigation for extensions", () => {
it("tab for sibling page is not active", () => {
const tabLink = rendered.getByTestId(
"tab-link-for-some-extension-name-some-other-child-id",
"tab-link-for-sidebar-item-some-extension-name-some-other-child-id",
);
expect(tabLink.dataset.isActiveTest).toBe("false");
@ -406,7 +406,7 @@ describe("cluster - sidebar and tab navigation for extensions", () => {
expect(actual).toEqual({
sidebar: {
expanded: { "some-extension-name-some-parent-id": true },
expanded: { "sidebar-item-some-extension-name-some-parent-id": true },
width: 200,
},
});
@ -415,7 +415,7 @@ describe("cluster - sidebar and tab navigation for extensions", () => {
describe("when selecting sibling tab", () => {
beforeEach(() => {
const childTabLink = rendered.getByTestId(
"tab-link-for-some-extension-name-some-other-child-id",
"tab-link-for-sidebar-item-some-extension-name-some-other-child-id",
);
fireEvent.click(childTabLink);
@ -433,7 +433,7 @@ describe("cluster - sidebar and tab navigation for extensions", () => {
it("tab for sibling page is active", () => {
const tabLink = rendered.getByTestId(
"tab-link-for-some-extension-name-some-other-child-id",
"tab-link-for-sidebar-item-some-extension-name-some-other-child-id",
);
expect(tabLink.dataset.isActiveTest).toBe("true");
@ -441,7 +441,7 @@ describe("cluster - sidebar and tab navigation for extensions", () => {
it("tab for previous page is not active", () => {
const tabLink = rendered.getByTestId(
"tab-link-for-some-extension-name-some-child-id",
"tab-link-for-sidebar-item-some-extension-name-some-child-id",
);
expect(tabLink.dataset.isActiveTest).toBe("false");

View File

@ -60,7 +60,7 @@ describe("cluster - visibility of sidebar items", () => {
});
it("related sidebar item exists", () => {
const item = rendered.queryByTestId("sidebar-item-some-item-id");
const item = rendered.queryByTestId("sidebar-item-test");
expect(item).not.toBeNull();
});

View File

@ -79,7 +79,7 @@ exports[`workloads / pods when navigating to workloads / pods view given a names
<a
aria-current="page"
class="navItem active"
data-testid="sidebar-item-link-for-workloads"
data-testid="link-for-sidebar-item-workloads"
href="/"
>
<i
@ -94,6 +94,7 @@ exports[`workloads / pods when navigating to workloads / pods view given a names
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-workloads"
>
<span
class="icon"
@ -104,31 +105,6 @@ exports[`workloads / pods when navigating to workloads / pods view given a names
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-config"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-config"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="list"
>
list
</span>
</i>
<span>
Config
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -136,7 +112,7 @@ exports[`workloads / pods when navigating to workloads / pods view given a names
>
<a
class="navItem"
data-testid="sidebar-item-link-for-network"
data-testid="link-for-sidebar-item-network"
href="/"
>
<i
@ -154,6 +130,7 @@ exports[`workloads / pods when navigating to workloads / pods view given a names
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-network"
>
<span
class="icon"
@ -164,31 +141,6 @@ exports[`workloads / pods when navigating to workloads / pods view given a names
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-storage"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-storage"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="storage"
>
storage
</span>
</i>
<span>
Storage
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -196,7 +148,7 @@ exports[`workloads / pods when navigating to workloads / pods view given a names
>
<a
class="navItem"
data-testid="sidebar-item-link-for-helm"
data-testid="link-for-sidebar-item-helm"
href="/"
>
<i
@ -211,66 +163,7 @@ exports[`workloads / pods when navigating to workloads / pods view given a names
</span>
<i
class="Icon expandIcon material focusable"
>
<span
class="icon"
data-icon-name="keyboard_arrow_down"
>
keyboard_arrow_down
</span>
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-user-management"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-user-management"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="security"
>
security
</span>
</i>
<span>
Access Control
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-custom-resources"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-custom-resources"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="extension"
>
extension
</span>
</i>
<span>
Custom Resources
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-helm"
>
<span
class="icon"
@ -300,7 +193,7 @@ exports[`workloads / pods when navigating to workloads / pods view given a names
<div
class="Tab flex gaps align-center"
data-is-active-test="false"
data-testid="tab-link-for-overview"
data-testid="tab-link-for-sidebar-item-workloads-overview"
role="tab"
tabindex="0"
>
@ -313,7 +206,7 @@ exports[`workloads / pods when navigating to workloads / pods view given a names
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-testid="tab-link-for-pods"
data-testid="tab-link-for-sidebar-item-pods"
role="tab"
tabindex="0"
>
@ -1018,7 +911,7 @@ exports[`workloads / pods when navigating to workloads / pods view given no pods
<a
aria-current="page"
class="navItem active"
data-testid="sidebar-item-link-for-workloads"
data-testid="link-for-sidebar-item-workloads"
href="/"
>
<i
@ -1033,6 +926,7 @@ exports[`workloads / pods when navigating to workloads / pods view given no pods
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-workloads"
>
<span
class="icon"
@ -1043,31 +937,6 @@ exports[`workloads / pods when navigating to workloads / pods view given no pods
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-config"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-config"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="list"
>
list
</span>
</i>
<span>
Config
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -1075,7 +944,7 @@ exports[`workloads / pods when navigating to workloads / pods view given no pods
>
<a
class="navItem"
data-testid="sidebar-item-link-for-network"
data-testid="link-for-sidebar-item-network"
href="/"
>
<i
@ -1093,6 +962,7 @@ exports[`workloads / pods when navigating to workloads / pods view given no pods
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-network"
>
<span
class="icon"
@ -1103,31 +973,6 @@ exports[`workloads / pods when navigating to workloads / pods view given no pods
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-storage"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-storage"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="storage"
>
storage
</span>
</i>
<span>
Storage
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -1135,7 +980,7 @@ exports[`workloads / pods when navigating to workloads / pods view given no pods
>
<a
class="navItem"
data-testid="sidebar-item-link-for-helm"
data-testid="link-for-sidebar-item-helm"
href="/"
>
<i
@ -1150,66 +995,7 @@ exports[`workloads / pods when navigating to workloads / pods view given no pods
</span>
<i
class="Icon expandIcon material focusable"
>
<span
class="icon"
data-icon-name="keyboard_arrow_down"
>
keyboard_arrow_down
</span>
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-user-management"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-user-management"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="security"
>
security
</span>
</i>
<span>
Access Control
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-custom-resources"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-custom-resources"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="extension"
>
extension
</span>
</i>
<span>
Custom Resources
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-helm"
>
<span
class="icon"
@ -1239,7 +1025,7 @@ exports[`workloads / pods when navigating to workloads / pods view given no pods
<div
class="Tab flex gaps align-center"
data-is-active-test="false"
data-testid="tab-link-for-overview"
data-testid="tab-link-for-sidebar-item-workloads-overview"
role="tab"
tabindex="0"
>
@ -1252,7 +1038,7 @@ exports[`workloads / pods when navigating to workloads / pods view given no pods
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-testid="tab-link-for-pods"
data-testid="tab-link-for-sidebar-item-pods"
role="tab"
tabindex="0"
>
@ -1851,7 +1637,7 @@ exports[`workloads / pods when navigating to workloads / pods view given pods ar
<a
aria-current="page"
class="navItem active"
data-testid="sidebar-item-link-for-workloads"
data-testid="link-for-sidebar-item-workloads"
href="/"
>
<i
@ -1866,6 +1652,7 @@ exports[`workloads / pods when navigating to workloads / pods view given pods ar
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-workloads"
>
<span
class="icon"
@ -1876,31 +1663,6 @@ exports[`workloads / pods when navigating to workloads / pods view given pods ar
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-config"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-config"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="list"
>
list
</span>
</i>
<span>
Config
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -1908,7 +1670,7 @@ exports[`workloads / pods when navigating to workloads / pods view given pods ar
>
<a
class="navItem"
data-testid="sidebar-item-link-for-network"
data-testid="link-for-sidebar-item-network"
href="/"
>
<i
@ -1926,6 +1688,7 @@ exports[`workloads / pods when navigating to workloads / pods view given pods ar
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-network"
>
<span
class="icon"
@ -1936,31 +1699,6 @@ exports[`workloads / pods when navigating to workloads / pods view given pods ar
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-storage"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-storage"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="storage"
>
storage
</span>
</i>
<span>
Storage
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -1968,7 +1706,7 @@ exports[`workloads / pods when navigating to workloads / pods view given pods ar
>
<a
class="navItem"
data-testid="sidebar-item-link-for-helm"
data-testid="link-for-sidebar-item-helm"
href="/"
>
<i
@ -1983,66 +1721,7 @@ exports[`workloads / pods when navigating to workloads / pods view given pods ar
</span>
<i
class="Icon expandIcon material focusable"
>
<span
class="icon"
data-icon-name="keyboard_arrow_down"
>
keyboard_arrow_down
</span>
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-user-management"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-user-management"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="security"
>
security
</span>
</i>
<span>
Access Control
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-custom-resources"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-custom-resources"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="extension"
>
extension
</span>
</i>
<span>
Custom Resources
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-helm"
>
<span
class="icon"
@ -2072,7 +1751,7 @@ exports[`workloads / pods when navigating to workloads / pods view given pods ar
<div
class="Tab flex gaps align-center"
data-is-active-test="false"
data-testid="tab-link-for-overview"
data-testid="tab-link-for-sidebar-item-workloads-overview"
role="tab"
tabindex="0"
>
@ -2085,7 +1764,7 @@ exports[`workloads / pods when navigating to workloads / pods view given pods ar
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-testid="tab-link-for-pods"
data-testid="tab-link-for-sidebar-item-pods"
role="tab"
tabindex="0"
>

View File

@ -79,7 +79,7 @@ exports[`disable workloads overview details when cluster is not relevant given e
<a
aria-current="page"
class="navItem active"
data-testid="sidebar-item-link-for-workloads"
data-testid="link-for-sidebar-item-workloads"
href="/"
>
<i
@ -94,6 +94,7 @@ exports[`disable workloads overview details when cluster is not relevant given e
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-workloads"
>
<span
class="icon"
@ -104,31 +105,6 @@ exports[`disable workloads overview details when cluster is not relevant given e
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-config"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-config"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="list"
>
list
</span>
</i>
<span>
Config
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -136,7 +112,7 @@ exports[`disable workloads overview details when cluster is not relevant given e
>
<a
class="navItem"
data-testid="sidebar-item-link-for-network"
data-testid="link-for-sidebar-item-network"
href="/"
>
<i
@ -154,6 +130,7 @@ exports[`disable workloads overview details when cluster is not relevant given e
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-network"
>
<span
class="icon"
@ -164,31 +141,6 @@ exports[`disable workloads overview details when cluster is not relevant given e
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-storage"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-storage"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="storage"
>
storage
</span>
</i>
<span>
Storage
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -196,7 +148,7 @@ exports[`disable workloads overview details when cluster is not relevant given e
>
<a
class="navItem"
data-testid="sidebar-item-link-for-helm"
data-testid="link-for-sidebar-item-helm"
href="/"
>
<i
@ -211,66 +163,7 @@ exports[`disable workloads overview details when cluster is not relevant given e
</span>
<i
class="Icon expandIcon material focusable"
>
<span
class="icon"
data-icon-name="keyboard_arrow_down"
>
keyboard_arrow_down
</span>
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-user-management"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-user-management"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="security"
>
security
</span>
</i>
<span>
Access Control
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-custom-resources"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-custom-resources"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="extension"
>
extension
</span>
</i>
<span>
Custom Resources
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-helm"
>
<span
class="icon"
@ -300,7 +193,7 @@ exports[`disable workloads overview details when cluster is not relevant given e
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-testid="tab-link-for-overview"
data-testid="tab-link-for-sidebar-item-workloads-overview"
role="tab"
tabindex="0"
>
@ -634,7 +527,7 @@ exports[`disable workloads overview details when cluster is not relevant given e
<a
aria-current="page"
class="navItem active"
data-testid="sidebar-item-link-for-workloads"
data-testid="link-for-sidebar-item-workloads"
href="/"
>
<i
@ -649,6 +542,7 @@ exports[`disable workloads overview details when cluster is not relevant given e
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-workloads"
>
<span
class="icon"
@ -659,31 +553,6 @@ exports[`disable workloads overview details when cluster is not relevant given e
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-config"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-config"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="list"
>
list
</span>
</i>
<span>
Config
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -691,7 +560,7 @@ exports[`disable workloads overview details when cluster is not relevant given e
>
<a
class="navItem"
data-testid="sidebar-item-link-for-network"
data-testid="link-for-sidebar-item-network"
href="/"
>
<i
@ -709,6 +578,7 @@ exports[`disable workloads overview details when cluster is not relevant given e
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-network"
>
<span
class="icon"
@ -719,31 +589,6 @@ exports[`disable workloads overview details when cluster is not relevant given e
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-storage"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-storage"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="storage"
>
storage
</span>
</i>
<span>
Storage
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -751,7 +596,7 @@ exports[`disable workloads overview details when cluster is not relevant given e
>
<a
class="navItem"
data-testid="sidebar-item-link-for-helm"
data-testid="link-for-sidebar-item-helm"
href="/"
>
<i
@ -766,66 +611,7 @@ exports[`disable workloads overview details when cluster is not relevant given e
</span>
<i
class="Icon expandIcon material focusable"
>
<span
class="icon"
data-icon-name="keyboard_arrow_down"
>
keyboard_arrow_down
</span>
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-user-management"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-user-management"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="security"
>
security
</span>
</i>
<span>
Access Control
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-custom-resources"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-custom-resources"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="extension"
>
extension
</span>
</i>
<span>
Custom Resources
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-helm"
>
<span
class="icon"
@ -855,7 +641,7 @@ exports[`disable workloads overview details when cluster is not relevant given e
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-testid="tab-link-for-overview"
data-testid="tab-link-for-sidebar-item-workloads-overview"
role="tab"
tabindex="0"
>
@ -1184,7 +970,7 @@ exports[`disable workloads overview details when cluster is not relevant given n
<a
aria-current="page"
class="navItem active"
data-testid="sidebar-item-link-for-workloads"
data-testid="link-for-sidebar-item-workloads"
href="/"
>
<i
@ -1199,6 +985,7 @@ exports[`disable workloads overview details when cluster is not relevant given n
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-workloads"
>
<span
class="icon"
@ -1209,31 +996,6 @@ exports[`disable workloads overview details when cluster is not relevant given n
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-config"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-config"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="list"
>
list
</span>
</i>
<span>
Config
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -1241,7 +1003,7 @@ exports[`disable workloads overview details when cluster is not relevant given n
>
<a
class="navItem"
data-testid="sidebar-item-link-for-network"
data-testid="link-for-sidebar-item-network"
href="/"
>
<i
@ -1259,6 +1021,7 @@ exports[`disable workloads overview details when cluster is not relevant given n
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-network"
>
<span
class="icon"
@ -1269,31 +1032,6 @@ exports[`disable workloads overview details when cluster is not relevant given n
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-storage"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-storage"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="storage"
>
storage
</span>
</i>
<span>
Storage
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -1301,7 +1039,7 @@ exports[`disable workloads overview details when cluster is not relevant given n
>
<a
class="navItem"
data-testid="sidebar-item-link-for-helm"
data-testid="link-for-sidebar-item-helm"
href="/"
>
<i
@ -1316,66 +1054,7 @@ exports[`disable workloads overview details when cluster is not relevant given n
</span>
<i
class="Icon expandIcon material focusable"
>
<span
class="icon"
data-icon-name="keyboard_arrow_down"
>
keyboard_arrow_down
</span>
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-user-management"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-user-management"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="security"
>
security
</span>
</i>
<span>
Access Control
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-custom-resources"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-custom-resources"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="extension"
>
extension
</span>
</i>
<span>
Custom Resources
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-helm"
>
<span
class="icon"
@ -1405,7 +1084,7 @@ exports[`disable workloads overview details when cluster is not relevant given n
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-testid="tab-link-for-overview"
data-testid="tab-link-for-sidebar-item-workloads-overview"
role="tab"
tabindex="0"
>

View File

@ -79,7 +79,7 @@ exports[`installing helm chart from previously opened tab given tab for installi
<a
aria-current="page"
class="navItem active"
data-testid="sidebar-item-link-for-workloads"
data-testid="link-for-sidebar-item-workloads"
href="/"
>
<i
@ -94,6 +94,7 @@ exports[`installing helm chart from previously opened tab given tab for installi
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-workloads"
>
<span
class="icon"
@ -104,31 +105,6 @@ exports[`installing helm chart from previously opened tab given tab for installi
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-config"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-config"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="list"
>
list
</span>
</i>
<span>
Config
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -136,7 +112,7 @@ exports[`installing helm chart from previously opened tab given tab for installi
>
<a
class="navItem"
data-testid="sidebar-item-link-for-network"
data-testid="link-for-sidebar-item-network"
href="/"
>
<i
@ -154,6 +130,7 @@ exports[`installing helm chart from previously opened tab given tab for installi
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-network"
>
<span
class="icon"
@ -164,31 +141,6 @@ exports[`installing helm chart from previously opened tab given tab for installi
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-storage"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-storage"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="storage"
>
storage
</span>
</i>
<span>
Storage
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -196,7 +148,7 @@ exports[`installing helm chart from previously opened tab given tab for installi
>
<a
class="navItem"
data-testid="sidebar-item-link-for-helm"
data-testid="link-for-sidebar-item-helm"
href="/"
>
<i
@ -211,66 +163,7 @@ exports[`installing helm chart from previously opened tab given tab for installi
</span>
<i
class="Icon expandIcon material focusable"
>
<span
class="icon"
data-icon-name="keyboard_arrow_down"
>
keyboard_arrow_down
</span>
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-user-management"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-user-management"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="security"
>
security
</span>
</i>
<span>
Access Control
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-custom-resources"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-custom-resources"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="extension"
>
extension
</span>
</i>
<span>
Custom Resources
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-helm"
>
<span
class="icon"
@ -300,7 +193,7 @@ exports[`installing helm chart from previously opened tab given tab for installi
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-testid="tab-link-for-overview"
data-testid="tab-link-for-sidebar-item-workloads-overview"
role="tab"
tabindex="0"
>
@ -639,7 +532,7 @@ exports[`installing helm chart from previously opened tab given tab for installi
<a
aria-current="page"
class="navItem active"
data-testid="sidebar-item-link-for-workloads"
data-testid="link-for-sidebar-item-workloads"
href="/"
>
<i
@ -654,6 +547,7 @@ exports[`installing helm chart from previously opened tab given tab for installi
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-workloads"
>
<span
class="icon"
@ -664,31 +558,6 @@ exports[`installing helm chart from previously opened tab given tab for installi
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-config"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-config"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="list"
>
list
</span>
</i>
<span>
Config
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -696,7 +565,7 @@ exports[`installing helm chart from previously opened tab given tab for installi
>
<a
class="navItem"
data-testid="sidebar-item-link-for-network"
data-testid="link-for-sidebar-item-network"
href="/"
>
<i
@ -714,6 +583,7 @@ exports[`installing helm chart from previously opened tab given tab for installi
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-network"
>
<span
class="icon"
@ -724,31 +594,6 @@ exports[`installing helm chart from previously opened tab given tab for installi
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-storage"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-storage"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="storage"
>
storage
</span>
</i>
<span>
Storage
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -756,7 +601,7 @@ exports[`installing helm chart from previously opened tab given tab for installi
>
<a
class="navItem"
data-testid="sidebar-item-link-for-helm"
data-testid="link-for-sidebar-item-helm"
href="/"
>
<i
@ -771,66 +616,7 @@ exports[`installing helm chart from previously opened tab given tab for installi
</span>
<i
class="Icon expandIcon material focusable"
>
<span
class="icon"
data-icon-name="keyboard_arrow_down"
>
keyboard_arrow_down
</span>
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-user-management"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-user-management"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="security"
>
security
</span>
</i>
<span>
Access Control
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-custom-resources"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-custom-resources"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="extension"
>
extension
</span>
</i>
<span>
Custom Resources
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-helm"
>
<span
class="icon"
@ -860,7 +646,7 @@ exports[`installing helm chart from previously opened tab given tab for installi
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-testid="tab-link-for-overview"
data-testid="tab-link-for-sidebar-item-workloads-overview"
role="tab"
tabindex="0"
>

View File

@ -78,7 +78,7 @@ exports[`namespaces route when viewed with some subNamespaces when navigating to
>
<a
class="navItem"
data-testid="sidebar-item-link-for-workloads"
data-testid="link-for-sidebar-item-workloads"
href="/"
>
<i
@ -93,6 +93,7 @@ exports[`namespaces route when viewed with some subNamespaces when navigating to
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-workloads"
>
<span
class="icon"
@ -103,31 +104,6 @@ exports[`namespaces route when viewed with some subNamespaces when navigating to
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-config"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-config"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="list"
>
list
</span>
</i>
<span>
Config
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -135,7 +111,7 @@ exports[`namespaces route when viewed with some subNamespaces when navigating to
>
<a
class="navItem"
data-testid="sidebar-item-link-for-network"
data-testid="link-for-sidebar-item-network"
href="/"
>
<i
@ -153,6 +129,7 @@ exports[`namespaces route when viewed with some subNamespaces when navigating to
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-network"
>
<span
class="icon"
@ -163,31 +140,6 @@ exports[`namespaces route when viewed with some subNamespaces when navigating to
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-storage"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-storage"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="storage"
>
storage
</span>
</i>
<span>
Storage
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="true"
@ -196,7 +148,7 @@ exports[`namespaces route when viewed with some subNamespaces when navigating to
<a
aria-current="page"
class="navItem active"
data-testid="sidebar-item-link-for-namespaces"
data-testid="link-for-sidebar-item-namespaces"
href="/"
>
<i
@ -221,7 +173,7 @@ exports[`namespaces route when viewed with some subNamespaces when navigating to
>
<a
class="navItem"
data-testid="sidebar-item-link-for-helm"
data-testid="link-for-sidebar-item-helm"
href="/"
>
<i
@ -236,66 +188,7 @@ exports[`namespaces route when viewed with some subNamespaces when navigating to
</span>
<i
class="Icon expandIcon material focusable"
>
<span
class="icon"
data-icon-name="keyboard_arrow_down"
>
keyboard_arrow_down
</span>
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-user-management"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-user-management"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="security"
>
security
</span>
</i>
<span>
Access Control
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-custom-resources"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-custom-resources"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="extension"
>
extension
</span>
</i>
<span>
Custom Resources
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-helm"
>
<span
class="icon"
@ -951,7 +844,7 @@ exports[`namespaces route when viewed with some subNamespaces when navigating to
>
<a
class="navItem"
data-testid="sidebar-item-link-for-workloads"
data-testid="link-for-sidebar-item-workloads"
href="/"
>
<i
@ -966,6 +859,7 @@ exports[`namespaces route when viewed with some subNamespaces when navigating to
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-workloads"
>
<span
class="icon"
@ -976,31 +870,6 @@ exports[`namespaces route when viewed with some subNamespaces when navigating to
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-config"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-config"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="list"
>
list
</span>
</i>
<span>
Config
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -1008,7 +877,7 @@ exports[`namespaces route when viewed with some subNamespaces when navigating to
>
<a
class="navItem"
data-testid="sidebar-item-link-for-network"
data-testid="link-for-sidebar-item-network"
href="/"
>
<i
@ -1026,6 +895,7 @@ exports[`namespaces route when viewed with some subNamespaces when navigating to
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-network"
>
<span
class="icon"
@ -1036,31 +906,6 @@ exports[`namespaces route when viewed with some subNamespaces when navigating to
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-storage"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-storage"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="storage"
>
storage
</span>
</i>
<span>
Storage
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="true"
@ -1069,7 +914,7 @@ exports[`namespaces route when viewed with some subNamespaces when navigating to
<a
aria-current="page"
class="navItem active"
data-testid="sidebar-item-link-for-namespaces"
data-testid="link-for-sidebar-item-namespaces"
href="/"
>
<i
@ -1094,7 +939,7 @@ exports[`namespaces route when viewed with some subNamespaces when navigating to
>
<a
class="navItem"
data-testid="sidebar-item-link-for-helm"
data-testid="link-for-sidebar-item-helm"
href="/"
>
<i
@ -1109,66 +954,7 @@ exports[`namespaces route when viewed with some subNamespaces when navigating to
</span>
<i
class="Icon expandIcon material focusable"
>
<span
class="icon"
data-icon-name="keyboard_arrow_down"
>
keyboard_arrow_down
</span>
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-user-management"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-user-management"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="security"
>
security
</span>
</i>
<span>
Access Control
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-custom-resources"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-custom-resources"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="extension"
>
extension
</span>
</i>
<span>
Custom Resources
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-helm"
>
<span
class="icon"
@ -1855,7 +1641,7 @@ exports[`namespaces route when viewed with some subNamespaces when navigating to
>
<a
class="navItem"
data-testid="sidebar-item-link-for-workloads"
data-testid="link-for-sidebar-item-workloads"
href="/"
>
<i
@ -1870,6 +1656,7 @@ exports[`namespaces route when viewed with some subNamespaces when navigating to
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-workloads"
>
<span
class="icon"
@ -1880,31 +1667,6 @@ exports[`namespaces route when viewed with some subNamespaces when navigating to
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-config"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-config"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="list"
>
list
</span>
</i>
<span>
Config
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -1912,7 +1674,7 @@ exports[`namespaces route when viewed with some subNamespaces when navigating to
>
<a
class="navItem"
data-testid="sidebar-item-link-for-network"
data-testid="link-for-sidebar-item-network"
href="/"
>
<i
@ -1930,6 +1692,7 @@ exports[`namespaces route when viewed with some subNamespaces when navigating to
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-network"
>
<span
class="icon"
@ -1940,31 +1703,6 @@ exports[`namespaces route when viewed with some subNamespaces when navigating to
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-storage"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-storage"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="storage"
>
storage
</span>
</i>
<span>
Storage
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="true"
@ -1973,7 +1711,7 @@ exports[`namespaces route when viewed with some subNamespaces when navigating to
<a
aria-current="page"
class="navItem active"
data-testid="sidebar-item-link-for-namespaces"
data-testid="link-for-sidebar-item-namespaces"
href="/"
>
<i
@ -1998,7 +1736,7 @@ exports[`namespaces route when viewed with some subNamespaces when navigating to
>
<a
class="navItem"
data-testid="sidebar-item-link-for-helm"
data-testid="link-for-sidebar-item-helm"
href="/"
>
<i
@ -2013,66 +1751,7 @@ exports[`namespaces route when viewed with some subNamespaces when navigating to
</span>
<i
class="Icon expandIcon material focusable"
>
<span
class="icon"
data-icon-name="keyboard_arrow_down"
>
keyboard_arrow_down
</span>
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-user-management"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-user-management"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="security"
>
security
</span>
</i>
<span>
Access Control
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-custom-resources"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-custom-resources"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="extension"
>
extension
</span>
</i>
<span>
Custom Resources
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-helm"
>
<span
class="icon"

View File

@ -79,7 +79,7 @@ exports[`download logs options in logs dock tab opening pod logs when logs avail
<a
aria-current="page"
class="navItem active"
data-testid="sidebar-item-link-for-workloads"
data-testid="link-for-sidebar-item-workloads"
href="/"
>
<i
@ -94,6 +94,7 @@ exports[`download logs options in logs dock tab opening pod logs when logs avail
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-workloads"
>
<span
class="icon"
@ -104,31 +105,6 @@ exports[`download logs options in logs dock tab opening pod logs when logs avail
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-config"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-config"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="list"
>
list
</span>
</i>
<span>
Config
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -136,7 +112,7 @@ exports[`download logs options in logs dock tab opening pod logs when logs avail
>
<a
class="navItem"
data-testid="sidebar-item-link-for-network"
data-testid="link-for-sidebar-item-network"
href="/"
>
<i
@ -154,6 +130,7 @@ exports[`download logs options in logs dock tab opening pod logs when logs avail
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-network"
>
<span
class="icon"
@ -164,31 +141,6 @@ exports[`download logs options in logs dock tab opening pod logs when logs avail
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-storage"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-storage"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="storage"
>
storage
</span>
</i>
<span>
Storage
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -196,7 +148,7 @@ exports[`download logs options in logs dock tab opening pod logs when logs avail
>
<a
class="navItem"
data-testid="sidebar-item-link-for-helm"
data-testid="link-for-sidebar-item-helm"
href="/"
>
<i
@ -211,66 +163,7 @@ exports[`download logs options in logs dock tab opening pod logs when logs avail
</span>
<i
class="Icon expandIcon material focusable"
>
<span
class="icon"
data-icon-name="keyboard_arrow_down"
>
keyboard_arrow_down
</span>
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-user-management"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-user-management"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="security"
>
security
</span>
</i>
<span>
Access Control
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-custom-resources"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-custom-resources"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="extension"
>
extension
</span>
</i>
<span>
Custom Resources
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-helm"
>
<span
class="icon"
@ -300,7 +193,7 @@ exports[`download logs options in logs dock tab opening pod logs when logs avail
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-testid="tab-link-for-overview"
data-testid="tab-link-for-sidebar-item-workloads-overview"
role="tab"
tabindex="0"
>
@ -972,7 +865,7 @@ exports[`download logs options in logs dock tab opening pod logs when logs not a
<a
aria-current="page"
class="navItem active"
data-testid="sidebar-item-link-for-workloads"
data-testid="link-for-sidebar-item-workloads"
href="/"
>
<i
@ -987,6 +880,7 @@ exports[`download logs options in logs dock tab opening pod logs when logs not a
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-workloads"
>
<span
class="icon"
@ -997,31 +891,6 @@ exports[`download logs options in logs dock tab opening pod logs when logs not a
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-config"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-config"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="list"
>
list
</span>
</i>
<span>
Config
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -1029,7 +898,7 @@ exports[`download logs options in logs dock tab opening pod logs when logs not a
>
<a
class="navItem"
data-testid="sidebar-item-link-for-network"
data-testid="link-for-sidebar-item-network"
href="/"
>
<i
@ -1047,6 +916,7 @@ exports[`download logs options in logs dock tab opening pod logs when logs not a
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-network"
>
<span
class="icon"
@ -1057,31 +927,6 @@ exports[`download logs options in logs dock tab opening pod logs when logs not a
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-storage"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-storage"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="storage"
>
storage
</span>
</i>
<span>
Storage
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -1089,7 +934,7 @@ exports[`download logs options in logs dock tab opening pod logs when logs not a
>
<a
class="navItem"
data-testid="sidebar-item-link-for-helm"
data-testid="link-for-sidebar-item-helm"
href="/"
>
<i
@ -1104,66 +949,7 @@ exports[`download logs options in logs dock tab opening pod logs when logs not a
</span>
<i
class="Icon expandIcon material focusable"
>
<span
class="icon"
data-icon-name="keyboard_arrow_down"
>
keyboard_arrow_down
</span>
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-user-management"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-user-management"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="security"
>
security
</span>
</i>
<span>
Access Control
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-custom-resources"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-custom-resources"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="extension"
>
extension
</span>
</i>
<span>
Custom Resources
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-helm"
>
<span
class="icon"
@ -1193,7 +979,7 @@ exports[`download logs options in logs dock tab opening pod logs when logs not a
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-testid="tab-link-for-overview"
data-testid="tab-link-for-sidebar-item-workloads-overview"
role="tab"
tabindex="0"
>

View File

@ -8,7 +8,7 @@ import { extensionRegistratorInjectionToken } from "../../../extensions/extensio
import { sidebarItemInjectionToken } from "@k8slens/cluster-sidebar";
import { computed } from "mobx";
import routesInjectable from "../../routes/routes.injectable";
import { matches, noop } from "lodash/fp";
import { matches } from "lodash/fp";
import routeIsActiveInjectable from "../../routes/route-is-active.injectable";
import { navigateToRouteInjectionToken } from "../../../common/front-end-routing/navigate-to-route-injection-token";
import { getExtensionRoutePath } from "../../routes/for-extension";
@ -23,66 +23,55 @@ const extensionSidebarItemRegistratorInjectable = getInjectable({
const navigateToRoute = di.inject(navigateToRouteInjectionToken);
const routes = di.inject(routesInjectable);
const extensionShouldBeEnabledForClusterFrame = di.inject(extensionShouldBeEnabledForClusterFrameInjectable, extension);
const extensionRoutes = computed(() => routes.get().filter(matches({ extension })));
return computed(() => {
const extensionRoutes = routes.get().filter(matches({ extension }));
return computed(() => extension.clusterPageMenus.map((registration) => {
const {
components,
title,
orderNumber = 9999,
parentId: rawParentId,
visible,
id: rawId,
target,
} = registration;
const id = rawId
? `sidebar-item-${extension.sanitizedExtensionId}-${rawId}`
: `sidebar-item-${extension.sanitizedExtensionId}`;
const parentId = rawParentId
? `sidebar-item-${extension.sanitizedExtensionId}-${rawParentId}`
: null;
const targetRoutePath = getExtensionRoutePath(extension, target?.pageId);
const targetRoute = computed(() => extensionRoutes.get().find(matches({ path: targetRoutePath })));
return extension.clusterPageMenus.map((registration) => {
const targetRoutePath = getExtensionRoutePath(
extension,
registration.target?.pageId,
);
return getInjectable({
id,
instantiate: () => ({
orderNumber,
parentId,
isVisible: computed(() => extensionShouldBeEnabledForClusterFrame.value.get() && (visible?.get() ?? true)),
title,
getIcon: () => (components.Icon && <components.Icon />),
onClick: () => {
const route = targetRoute.get();
const targetRoute = extensionRoutes.find(
matches({ path: targetRoutePath }),
);
if (route) {
navigateToRoute(route);
}
},
isActive: computed(() => {
const route = targetRoute.get();
const isVisible = computed(() => {
if (!extensionShouldBeEnabledForClusterFrame.value.get()) {
return false;
}
if (!route) {
return false;
}
if (!registration.visible) {
return true;
}
return registration.visible.get();
});
const id = registration.id ?
`${extension.sanitizedExtensionId}-${registration.id}`
: extension.sanitizedExtensionId;
return getInjectable({
id: `sidebar-item-${id}`,
instantiate: () => ({
orderNumber: registration.orderNumber ?? 9999,
parentId: registration.parentId
? `${extension.sanitizedExtensionId}-${registration.parentId}`
: null,
isVisible,
title: registration.title,
getIcon: registration.components.Icon
? () => <registration.components.Icon />
: undefined,
...(targetRoute
? {
onClick: () => navigateToRoute(targetRoute),
isActive: di.inject(
routeIsActiveInjectable,
targetRoute,
),
}
: { onClick: noop }),
return di.inject(routeIsActiveInjectable, route).get();
}),
injectionToken: sidebarItemInjectionToken,
});
}),
injectionToken: sidebarItemInjectionToken,
});
});
}));
},
injectionToken: extensionRegistratorInjectionToken,

View File

@ -82,7 +82,7 @@ exports[`<ClusterFrame /> given cluster with list nodes and namespaces permissio
<a
aria-current="page"
class="navItem active"
data-testid="sidebar-item-link-for-cluster-overview"
data-testid="link-for-sidebar-item-cluster-overview"
href="/"
>
<i
@ -104,7 +104,7 @@ exports[`<ClusterFrame /> given cluster with list nodes and namespaces permissio
>
<a
class="navItem"
data-testid="sidebar-item-link-for-nodes"
data-testid="link-for-sidebar-item-nodes"
href="/"
>
<i
@ -126,7 +126,7 @@ exports[`<ClusterFrame /> given cluster with list nodes and namespaces permissio
>
<a
class="navItem"
data-testid="sidebar-item-link-for-workloads"
data-testid="link-for-sidebar-item-workloads"
href="/"
>
<i
@ -141,6 +141,7 @@ exports[`<ClusterFrame /> given cluster with list nodes and namespaces permissio
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-workloads"
>
<span
class="icon"
@ -151,31 +152,6 @@ exports[`<ClusterFrame /> given cluster with list nodes and namespaces permissio
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-config"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-config"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="list"
>
list
</span>
</i>
<span>
Config
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -183,7 +159,7 @@ exports[`<ClusterFrame /> given cluster with list nodes and namespaces permissio
>
<a
class="navItem"
data-testid="sidebar-item-link-for-network"
data-testid="link-for-sidebar-item-network"
href="/"
>
<i
@ -201,6 +177,7 @@ exports[`<ClusterFrame /> given cluster with list nodes and namespaces permissio
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-network"
>
<span
class="icon"
@ -211,31 +188,6 @@ exports[`<ClusterFrame /> given cluster with list nodes and namespaces permissio
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-storage"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-storage"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="storage"
>
storage
</span>
</i>
<span>
Storage
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -243,7 +195,7 @@ exports[`<ClusterFrame /> given cluster with list nodes and namespaces permissio
>
<a
class="navItem"
data-testid="sidebar-item-link-for-namespaces"
data-testid="link-for-sidebar-item-namespaces"
href="/"
>
<i
@ -268,7 +220,7 @@ exports[`<ClusterFrame /> given cluster with list nodes and namespaces permissio
>
<a
class="navItem"
data-testid="sidebar-item-link-for-helm"
data-testid="link-for-sidebar-item-helm"
href="/"
>
<i
@ -283,66 +235,7 @@ exports[`<ClusterFrame /> given cluster with list nodes and namespaces permissio
</span>
<i
class="Icon expandIcon material focusable"
>
<span
class="icon"
data-icon-name="keyboard_arrow_down"
>
keyboard_arrow_down
</span>
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-user-management"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-user-management"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="security"
>
security
</span>
</i>
<span>
Access Control
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-custom-resources"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-custom-resources"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="extension"
>
extension
</span>
</i>
<span>
Custom Resources
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-helm"
>
<span
class="icon"
@ -586,7 +479,7 @@ exports[`<ClusterFrame /> given cluster with list nodes and namespaces permissio
<a
aria-current="page"
class="navItem active"
data-testid="sidebar-item-link-for-cluster-overview"
data-testid="link-for-sidebar-item-cluster-overview"
href="/"
>
<i
@ -608,7 +501,7 @@ exports[`<ClusterFrame /> given cluster with list nodes and namespaces permissio
>
<a
class="navItem"
data-testid="sidebar-item-link-for-nodes"
data-testid="link-for-sidebar-item-nodes"
href="/"
>
<i
@ -630,7 +523,7 @@ exports[`<ClusterFrame /> given cluster with list nodes and namespaces permissio
>
<a
class="navItem"
data-testid="sidebar-item-link-for-workloads"
data-testid="link-for-sidebar-item-workloads"
href="/"
>
<i
@ -645,6 +538,7 @@ exports[`<ClusterFrame /> given cluster with list nodes and namespaces permissio
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-workloads"
>
<span
class="icon"
@ -655,31 +549,6 @@ exports[`<ClusterFrame /> given cluster with list nodes and namespaces permissio
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-config"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-config"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="list"
>
list
</span>
</i>
<span>
Config
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -687,7 +556,7 @@ exports[`<ClusterFrame /> given cluster with list nodes and namespaces permissio
>
<a
class="navItem"
data-testid="sidebar-item-link-for-network"
data-testid="link-for-sidebar-item-network"
href="/"
>
<i
@ -705,6 +574,7 @@ exports[`<ClusterFrame /> given cluster with list nodes and namespaces permissio
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-network"
>
<span
class="icon"
@ -715,31 +585,6 @@ exports[`<ClusterFrame /> given cluster with list nodes and namespaces permissio
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-storage"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-storage"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="storage"
>
storage
</span>
</i>
<span>
Storage
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -747,7 +592,7 @@ exports[`<ClusterFrame /> given cluster with list nodes and namespaces permissio
>
<a
class="navItem"
data-testid="sidebar-item-link-for-namespaces"
data-testid="link-for-sidebar-item-namespaces"
href="/"
>
<i
@ -772,7 +617,7 @@ exports[`<ClusterFrame /> given cluster with list nodes and namespaces permissio
>
<a
class="navItem"
data-testid="sidebar-item-link-for-helm"
data-testid="link-for-sidebar-item-helm"
href="/"
>
<i
@ -787,66 +632,7 @@ exports[`<ClusterFrame /> given cluster with list nodes and namespaces permissio
</span>
<i
class="Icon expandIcon material focusable"
>
<span
class="icon"
data-icon-name="keyboard_arrow_down"
>
keyboard_arrow_down
</span>
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-user-management"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-user-management"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="security"
>
security
</span>
</i>
<span>
Access Control
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-custom-resources"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-custom-resources"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="extension"
>
extension
</span>
</i>
<span>
Custom Resources
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-helm"
>
<span
class="icon"
@ -1097,7 +883,7 @@ exports[`<ClusterFrame /> given cluster without list nodes, but with namespaces
<a
aria-current="page"
class="navItem active"
data-testid="sidebar-item-link-for-workloads"
data-testid="link-for-sidebar-item-workloads"
href="/"
>
<i
@ -1112,6 +898,7 @@ exports[`<ClusterFrame /> given cluster without list nodes, but with namespaces
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-workloads"
>
<span
class="icon"
@ -1122,31 +909,6 @@ exports[`<ClusterFrame /> given cluster without list nodes, but with namespaces
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-config"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-config"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="list"
>
list
</span>
</i>
<span>
Config
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -1154,7 +916,7 @@ exports[`<ClusterFrame /> given cluster without list nodes, but with namespaces
>
<a
class="navItem"
data-testid="sidebar-item-link-for-network"
data-testid="link-for-sidebar-item-network"
href="/"
>
<i
@ -1172,6 +934,7 @@ exports[`<ClusterFrame /> given cluster without list nodes, but with namespaces
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-network"
>
<span
class="icon"
@ -1182,31 +945,6 @@ exports[`<ClusterFrame /> given cluster without list nodes, but with namespaces
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-storage"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-storage"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="storage"
>
storage
</span>
</i>
<span>
Storage
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
@ -1214,7 +952,7 @@ exports[`<ClusterFrame /> given cluster without list nodes, but with namespaces
>
<a
class="navItem"
data-testid="sidebar-item-link-for-namespaces"
data-testid="link-for-sidebar-item-namespaces"
href="/"
>
<i
@ -1239,7 +977,7 @@ exports[`<ClusterFrame /> given cluster without list nodes, but with namespaces
>
<a
class="navItem"
data-testid="sidebar-item-link-for-helm"
data-testid="link-for-sidebar-item-helm"
href="/"
>
<i
@ -1254,66 +992,7 @@ exports[`<ClusterFrame /> given cluster without list nodes, but with namespaces
</span>
<i
class="Icon expandIcon material focusable"
>
<span
class="icon"
data-icon-name="keyboard_arrow_down"
>
keyboard_arrow_down
</span>
</i>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-user-management"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-user-management"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="security"
>
security
</span>
</i>
<span>
Access Control
</span>
</a>
</div>
<div
class="SidebarItem"
data-is-active-test="false"
data-testid="sidebar-item-custom-resources"
>
<a
class="navItem"
data-testid="sidebar-item-link-for-custom-resources"
href="/"
>
<i
class="Icon material focusable"
>
<span
class="icon"
data-icon-name="extension"
>
extension
</span>
</i>
<span>
Custom Resources
</span>
<i
class="Icon expandIcon material focusable"
data-testid="expand-icon-for-sidebar-item-helm"
>
<span
class="icon"
@ -1343,7 +1022,7 @@ exports[`<ClusterFrame /> given cluster without list nodes, but with namespaces
<div
class="Tab flex gaps align-center active"
data-is-active-test="true"
data-testid="tab-link-for-overview"
data-testid="tab-link-for-sidebar-item-workloads-overview"
role="tab"
tabindex="0"
>

View File

@ -14,13 +14,10 @@ const routeIsActiveInjectable = getInjectable({
instantiate: (di, route: Route<unknown>) => {
const currentPath = di.inject(currentPathInjectable);
return computed(
() =>
!!matchPath(currentPath.get(), {
path: route.path,
exact: true,
}),
);
return computed(() => !!matchPath(currentPath.get(), {
path: route.path,
exact: true,
}));
},
lifecycle: lifecycleEnum.keyedSingleton({