mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
fix navigation-using-application-menu.test.ts
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
85d0592e5e
commit
387b044e69
@ -19,7 +19,7 @@ exports[`add-cluster - navigation using application menu when navigating to add
|
||||
Add Clusters from Kubeconfig
|
||||
</h2>
|
||||
<p>
|
||||
Clusters added here are
|
||||
Clusters added here are
|
||||
<b>
|
||||
not
|
||||
</b>
|
||||
@ -27,16 +27,14 @@ exports[`add-cluster - navigation using application menu when navigating to add
|
||||
<code>
|
||||
~/.kube/config
|
||||
</code>
|
||||
file.
|
||||
|
||||
file.
|
||||
<a
|
||||
href="https://docs.k8slens.dev/main//catalog/add-clusters/"
|
||||
rel="noreferrer"
|
||||
target="_blank"
|
||||
>
|
||||
Read more about adding clusters
|
||||
Read more about adding clusters.
|
||||
</a>
|
||||
.
|
||||
</p>
|
||||
<div
|
||||
class="flex column"
|
||||
|
||||
@ -32,8 +32,7 @@ import preferenceNavigationItemsInjectable from "../+preferences/preferences-nav
|
||||
import navigateToPreferencesInjectable from "../../../common/front-end-routing/routes/preferences/navigate-to-preferences.injectable";
|
||||
import type { MenuItemOpts } from "../../../main/menu/application-menu-items.injectable";
|
||||
import applicationMenuItemsInjectable from "../../../main/menu/application-menu-items.injectable";
|
||||
import type { MenuItemConstructorOptions } from "electron";
|
||||
import { MenuItem } from "electron";
|
||||
import type { MenuItem, MenuItemConstructorOptions } from "electron";
|
||||
import createStoresAndApisInjectable from "../../create-stores-apis.injectable";
|
||||
|
||||
type Callback = (dis: DiContainers) => void | Promise<void>;
|
||||
@ -153,7 +152,15 @@ export const getApplicationBuilder = () => {
|
||||
);
|
||||
}
|
||||
|
||||
menuItem.click?.(new MenuItem(menuItem), undefined, {});
|
||||
menuItem.click?.(
|
||||
{
|
||||
menu: null as never,
|
||||
commandId: 0,
|
||||
...menuItem,
|
||||
} as MenuItem,
|
||||
undefined,
|
||||
{},
|
||||
);
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user