From 387b044e696c43d4bb9a7b62a8e03d8fa7ecd5f1 Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Thu, 21 Apr 2022 09:17:31 -0400 Subject: [PATCH] fix navigation-using-application-menu.test.ts Signed-off-by: Sebastian Malton --- .../navigation-using-application-menu.test.ts.snap | 8 +++----- .../test-utils/get-application-builder.tsx | 13 ++++++++++--- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/src/behaviours/add-cluster/__snapshots__/navigation-using-application-menu.test.ts.snap b/src/behaviours/add-cluster/__snapshots__/navigation-using-application-menu.test.ts.snap index 4c1203829a..d19612eac3 100644 --- a/src/behaviours/add-cluster/__snapshots__/navigation-using-application-menu.test.ts.snap +++ b/src/behaviours/add-cluster/__snapshots__/navigation-using-application-menu.test.ts.snap @@ -19,7 +19,7 @@ exports[`add-cluster - navigation using application menu when navigating to add Add Clusters from Kubeconfig

- Clusters added here are + Clusters added here are not @@ -27,16 +27,14 @@ exports[`add-cluster - navigation using application menu when navigating to add ~/.kube/config - file. - + file. - Read more about adding clusters + Read more about adding clusters. - .

void | Promise; @@ -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, + {}, + ); }, },