diff --git a/packages/core/src/features/application-update/__snapshots__/installing-update.test.ts.snap b/packages/core/src/features/application-update/__snapshots__/installing-update.test.ts.snap
index a7d7d4b906..a0beecfa65 100644
--- a/packages/core/src/features/application-update/__snapshots__/installing-update.test.ts.snap
+++ b/packages/core/src/features/application-update/__snapshots__/installing-update.test.ts.snap
@@ -1144,6 +1144,292 @@ exports[`installing update when started when user checks for updates when new up
+
+
+
+
+
+
+
+ home
+
+
+
+
+
+
+
+ arrow_back
+
+
+
+
+
+
+
+ arrow_forward
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Welcome to some-product-name!
+
+
+ To get you started we have auto-detected your clusters in your
+
+ kubeconfig file and added them to the catalog, your centralized
+
+ view for managing all your cloud-native resources.
+
+
+ If you have any questions or feedback, please join our
+
+ Lens Forums
+
+ .
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ arrow_left
+
+
+
+
+
+ arrow_right
+
+
+
+
+
+
+
+
+
diff --git a/packages/core/src/features/application-update/installing-update.test.ts b/packages/core/src/features/application-update/installing-update.test.ts
index c186753954..0981c8c8f1 100644
--- a/packages/core/src/features/application-update/installing-update.test.ts
+++ b/packages/core/src/features/application-update/installing-update.test.ts
@@ -308,6 +308,29 @@ describe("installing update", () => {
expect(electronQuitAndInstallUpdateMock).toHaveBeenCalled();
});
});
+
+ describe("when download fails", () => {
+ beforeEach(async () => {
+ await downloadPlatformUpdateMock.resolve({ downloadWasSuccessful: false });
+ });
+
+ it("does not show the update button", () => {
+ const button =
+ rendered.queryByTestId("update-button");
+
+ expect(button).not.toBeInTheDocument();
+ });
+
+ it("shows normal tray icon", () => {
+ expect(builder.tray.getIconPath()).toBe(
+ "/some-static-files-directory/build/tray/trayIconTemplate.png",
+ );
+ });
+
+ it("renders", () => {
+ expect(rendered.baseElement).toMatchSnapshot();
+ });
+ });
});
});
});
diff --git a/packages/core/src/features/application-update/main/download-update/download-update.injectable.ts b/packages/core/src/features/application-update/main/download-update/download-update.injectable.ts
index 662a2b272d..fb1cbe0684 100644
--- a/packages/core/src/features/application-update/main/download-update/download-update.injectable.ts
+++ b/packages/core/src/features/application-update/main/download-update/download-update.injectable.ts
@@ -40,6 +40,7 @@ const downloadUpdateInjectable = getInjectable({
if (!downloadWasSuccessful) {
progressOfUpdateDownload.set({ percentage: 0, failed: "Download of update failed" });
discoveredVersionState.set(null);
+ updateDownloadedDate.set(null);
} else {
const currentDateTime = getCurrentDateTime();