diff --git a/src/behaviours/__snapshots__/extension-special-characters-in-page-registrations.test.tsx.snap b/src/behaviours/__snapshots__/extension-special-characters-in-page-registrations.test.tsx.snap index 39921a654b..91606c6ec9 100644 --- a/src/behaviours/__snapshots__/extension-special-characters-in-page-registrations.test.tsx.snap +++ b/src/behaviours/__snapshots__/extension-special-characters-in-page-registrations.test.tsx.snap @@ -52,12 +52,13 @@ exports[`extension special characters in page registrations renders 1`] = ` >
@@ -131,12 +133,13 @@ exports[`navigating between routes given route without path parameters when navi
>
No new updates available
@@ -144,6 +147,7 @@ exports[`navigating between routes given route without path parameters when navi
diff --git a/src/behaviours/add-cluster/__snapshots__/navigation-using-application-menu.test.tsx.snap b/src/behaviours/add-cluster/__snapshots__/navigation-using-application-menu.test.tsx.snap
index c7aca43db0..09f28e90a3 100644
--- a/src/behaviours/add-cluster/__snapshots__/navigation-using-application-menu.test.tsx.snap
+++ b/src/behaviours/add-cluster/__snapshots__/navigation-using-application-menu.test.tsx.snap
@@ -52,12 +52,13 @@ exports[`add-cluster - navigation using application menu renders 1`] = `
>
No new updates available
@@ -65,6 +66,7 @@ exports[`add-cluster - navigation using application menu renders 1`] = `
No new updates available
@@ -138,6 +141,7 @@ exports[`add-cluster - navigation using application menu when navigating to add
No new updates available
@@ -66,6 +67,7 @@ exports[`encourage user to update when sufficient time passed since update was d
No new updates available
@@ -66,6 +67,7 @@ exports[`installing update using tray when started renders 1`] = `
Checking for updates...
@@ -144,6 +147,7 @@ exports[`installing update using tray when started when user checks for updates
- Download for version some-version started...
+ Downloading version some-version...
Download of update failed
@@ -315,6 +322,7 @@ exports[`installing update using tray when started when user checks for updates
some-version is available
@@ -408,6 +417,7 @@ exports[`installing update using tray when started when user checks for updates
No new updates available
@@ -483,6 +494,7 @@ exports[`installing update using tray when started when user checks for updates
No new updates available
@@ -66,6 +67,7 @@ exports[`installing update when started renders 1`] = `
Checking for updates...
@@ -144,6 +147,7 @@ exports[`installing update when started when user checks for updates renders 1`]
- Download for version some-version started...
+ Downloading version some-version...
Download of update failed
@@ -315,6 +322,7 @@ exports[`installing update when started when user checks for updates when new up
some-version is available
@@ -408,6 +417,7 @@ exports[`installing update when started when user checks for updates when new up
No new updates available
@@ -483,6 +494,7 @@ exports[`installing update when started when user checks for updates when no new
No new updates available
@@ -66,6 +67,7 @@ exports[`periodical checking of updates given updater is enabled and configurati
No new updates available
@@ -66,6 +67,7 @@ exports[`selection of update stability when started renders 1`] = `
{
});
it("notifies the user that checking for updates is happening", () => {
- expect(rendered.getByTestId("auto-update-component")).toHaveTextContent("Checking for updates...");
+ expect(rendered.getByTestId("app-update-checking")).toBeInTheDocument();
});
it("renders", () => {
@@ -103,7 +103,7 @@ describe("installing update", () => {
});
it("notifies the user", () => {
- expect(rendered.getByTestId("auto-update-component")).toHaveTextContent("No new updates available");
+ expect(rendered.getByTestId("app-update-not-available")).toBeInTheDocument();
});
it("does not start downloading update", () => {
@@ -113,6 +113,12 @@ describe("installing update", () => {
it("renders", () => {
expect(rendered.baseElement).toMatchSnapshot();
});
+
+ it.skip("when 5 seconds elapses, clears the notification to the user", () => {
+ jest.advanceTimersByTime(6000);
+
+ expect(rendered.getByTestId("app-update-idle")).toBeInTheDocument();
+ });
});
describe("when new update is discovered", () => {
@@ -130,7 +136,7 @@ describe("installing update", () => {
});
it("notifies the user that download is happening", () => {
- expect(rendered.getByTestId("auto-update-component")).toHaveTextContent("Download for version some-version started...");
+ expect(rendered.getByTestId("app-update-downloading")).toBeInTheDocument();
});
it("renders", () => {
@@ -147,7 +153,7 @@ describe("installing update", () => {
});
it("notifies the user about failed download", () => {
- expect(rendered.getByTestId("auto-update-component")).toHaveTextContent("Download of update failed");
+ expect(rendered.getByTestId("app-update-download-failed")).toBeInTheDocument();
});
it("renders", () => {
@@ -165,7 +171,7 @@ describe("installing update", () => {
});
it("notifies the user about successful download", () => {
- expect(rendered.getByTestId("auto-update-component")).toHaveTextContent("some-version is available");
+ expect(rendered.getByTestId("app-update-available")).toBeInTheDocument();
});
it("renders", () => {
diff --git a/src/behaviours/extensions/__snapshots__/navigation-using-application-menu.test.ts.snap b/src/behaviours/extensions/__snapshots__/navigation-using-application-menu.test.ts.snap
index 0b5dba1c80..a549889d94 100644
--- a/src/behaviours/extensions/__snapshots__/navigation-using-application-menu.test.ts.snap
+++ b/src/behaviours/extensions/__snapshots__/navigation-using-application-menu.test.ts.snap
@@ -52,12 +52,13 @@ exports[`extensions - navigation using application menu renders 1`] = `
>
No new updates available
@@ -65,6 +66,7 @@ exports[`extensions - navigation using application menu renders 1`] = `
No new updates available
@@ -138,6 +141,7 @@ exports[`extensions - navigation using application menu when navigating to exten
No new updates available
@@ -66,6 +67,7 @@ exports[`add custom helm repository in preferences when navigating to preference
No new updates available
@@ -600,6 +603,7 @@ exports[`add custom helm repository in preferences when navigating to preference
No new updates available
@@ -1141,6 +1146,7 @@ exports[`add custom helm repository in preferences when navigating to preference
No new updates available
@@ -1791,6 +1798,7 @@ exports[`add custom helm repository in preferences when navigating to preference
No new updates available
@@ -2340,6 +2349,7 @@ exports[`add custom helm repository in preferences when navigating to preference
No new updates available
@@ -2990,6 +3001,7 @@ exports[`add custom helm repository in preferences when navigating to preference
No new updates available
@@ -3816,6 +3829,7 @@ exports[`add custom helm repository in preferences when navigating to preference
+ data-testid="app-update-not-available"
+ >
+ No new updates available
+
+ data-testid="app-update-not-available"
+ >
+ No new updates available
+
+ data-testid="app-update-not-available"
+ >
+ No new updates available
+
+ data-testid="app-update-not-available"
+ >
+ No new updates available
+
+ data-testid="app-update-not-available"
+ >
+ No new updates available
+
No new updates available
@@ -66,6 +67,7 @@ exports[`add helm repository from list in preferences when navigating to prefere
No new updates available
@@ -600,6 +603,7 @@ exports[`add helm repository from list in preferences when navigating to prefere
No new updates available
@@ -1141,6 +1146,7 @@ exports[`add helm repository from list in preferences when navigating to prefere
No new updates available
@@ -1735,6 +1742,7 @@ exports[`add helm repository from list in preferences when navigating to prefere
No new updates available
@@ -2276,6 +2285,7 @@ exports[`add helm repository from list in preferences when navigating to prefere
No new updates available
@@ -2817,6 +2828,7 @@ exports[`add helm repository from list in preferences when navigating to prefere
No new updates available
@@ -3351,6 +3364,7 @@ exports[`add helm repository from list in preferences when navigating to prefere
No new updates available
@@ -3922,6 +3937,7 @@ exports[`add helm repository from list in preferences when navigating to prefere
No new updates available
@@ -4556,6 +4573,7 @@ exports[`add helm repository from list in preferences when navigating to prefere
No new updates available
@@ -5127,6 +5146,7 @@ exports[`add helm repository from list in preferences when navigating to prefere
No new updates available
@@ -66,6 +67,7 @@ exports[`listing active helm repositories in preferences when navigating to pref
No new updates available
@@ -600,6 +603,7 @@ exports[`listing active helm repositories in preferences when navigating to pref
No new updates available
@@ -1134,6 +1139,7 @@ exports[`listing active helm repositories in preferences when navigating to pref
No new updates available
@@ -1560,6 +1567,7 @@ exports[`listing active helm repositories in preferences when navigating to pref
No new updates available
@@ -2094,6 +2103,7 @@ exports[`listing active helm repositories in preferences when navigating to pref
No new updates available
@@ -2520,6 +2531,7 @@ exports[`listing active helm repositories in preferences when navigating to pref
No new updates available
@@ -3054,6 +3067,7 @@ exports[`listing active helm repositories in preferences when navigating to pref
No new updates available
@@ -3625,6 +3640,7 @@ exports[`listing active helm repositories in preferences when navigating to pref
No new updates available
@@ -4051,6 +4068,7 @@ exports[`listing active helm repositories in preferences when navigating to pref
No new updates available
@@ -4477,6 +4496,7 @@ exports[`listing active helm repositories in preferences when navigating to pref
No new updates available
@@ -66,6 +67,7 @@ exports[`remove helm repository from list of active repositories in preferences
No new updates available
@@ -600,6 +603,7 @@ exports[`remove helm repository from list of active repositories in preferences
No new updates available
@@ -1141,6 +1146,7 @@ exports[`remove helm repository from list of active repositories in preferences
No new updates available
@@ -1682,6 +1689,7 @@ exports[`remove helm repository from list of active repositories in preferences
No new updates available
@@ -65,6 +66,7 @@ exports[`preferences - closing-preferences given accessing preferences directly
No new updates available
@@ -671,6 +674,7 @@ exports[`preferences - closing-preferences given accessing preferences directly
No new updates available
@@ -881,6 +886,7 @@ exports[`preferences - closing-preferences given accessing preferences directly
@@ -944,12 +950,13 @@ exports[`preferences - closing-preferences given accessing preferences directly
>
No new updates available
@@ -957,6 +964,7 @@ exports[`preferences - closing-preferences given accessing preferences directly
@@ -1020,12 +1028,13 @@ exports[`preferences - closing-preferences given already in a page and then navi
>
No new updates available
@@ -1033,6 +1042,7 @@ exports[`preferences - closing-preferences given already in a page and then navi
No new updates available
@@ -1639,6 +1650,7 @@ exports[`preferences - closing-preferences given already in a page and then navi
No new updates available
@@ -1849,6 +1862,7 @@ exports[`preferences - closing-preferences given already in a page and then navi
No new updates available
@@ -2059,6 +2074,7 @@ exports[`preferences - closing-preferences given already in a page and then navi
No new updates available
@@ -65,6 +66,7 @@ exports[`preferences - navigation to application preferences given in some child
No new updates available
@@ -335,6 +338,7 @@ exports[`preferences - navigation to application preferences given in some child
No new updates available
@@ -65,6 +66,7 @@ exports[`preferences - navigation to editor preferences given in preferences, wh
No new updates available
@@ -659,6 +662,7 @@ exports[`preferences - navigation to editor preferences given in preferences, wh
No new updates available
@@ -80,6 +81,7 @@ exports[`preferences - navigation to extension specific preferences given in pre
No new updates available
@@ -324,6 +327,7 @@ exports[`preferences - navigation to extension specific preferences given in pre
No new updates available
@@ -580,6 +585,7 @@ exports[`preferences - navigation to extension specific preferences given in pre
No new updates available
@@ -836,6 +843,7 @@ exports[`preferences - navigation to extension specific preferences given in pre
No new updates available
@@ -1115,6 +1124,7 @@ exports[`preferences - navigation to extension specific preferences given in pre
No new updates available
@@ -1709,6 +1720,7 @@ exports[`preferences - navigation to extension specific preferences given in pre
No new updates available
@@ -2338,6 +2351,7 @@ exports[`preferences - navigation to extension specific preferences given in pre
No new updates available
@@ -2606,6 +2621,7 @@ exports[`preferences - navigation to extension specific preferences given in pre
No new updates available
@@ -2819,6 +2836,7 @@ exports[`preferences - navigation to extension specific preferences when navigat
No new updates available
@@ -3063,6 +3082,7 @@ exports[`preferences - navigation to extension specific preferences when navigat
No new updates available
@@ -65,6 +66,7 @@ exports[`preferences - navigation to kubernetes preferences given in preferences
No new updates available
@@ -659,6 +662,7 @@ exports[`preferences - navigation to kubernetes preferences given in preferences
No new updates available
@@ -65,6 +66,7 @@ exports[`preferences - navigation to proxy preferences given in preferences, whe
No new updates available
@@ -659,6 +662,7 @@ exports[`preferences - navigation to proxy preferences given in preferences, whe
No new updates available
@@ -65,6 +66,7 @@ exports[`preferences - navigation to telemetry preferences given URL for Sentry
No new updates available
@@ -321,6 +324,7 @@ exports[`preferences - navigation to telemetry preferences given in preferences,
No new updates available
@@ -915,6 +920,7 @@ exports[`preferences - navigation to telemetry preferences given in preferences,
No new updates available
@@ -1521,6 +1528,7 @@ exports[`preferences - navigation to telemetry preferences given in preferences,
No new updates available
@@ -1765,6 +1774,7 @@ exports[`preferences - navigation to telemetry preferences given no URL for Sent
No new updates available
@@ -65,6 +66,7 @@ exports[`preferences - navigation to terminal preferences given in preferences,
No new updates available
@@ -659,6 +662,7 @@ exports[`preferences - navigation to terminal preferences given in preferences,
No new updates available
@@ -65,6 +66,7 @@ exports[`preferences - navigation using application menu renders 1`] = `
No new updates available
@@ -138,6 +141,7 @@ exports[`preferences - navigation using application menu when navigating to pref
No new updates available
@@ -66,6 +67,7 @@ exports[`show-about-using-tray renders 1`] = `
No new updates available
@@ -141,6 +144,7 @@ exports[`show-about-using-tray when navigating using tray renders 1`] = `
+
+
+
+
+
+ home
+
+
+
+
+ arrow_back
+
+
+
+
+ arrow_forward
+
+
+
+
+
+
+
+
+
+ No new updates available
+
+
+
+
+ left1
+
+
+
+
+ left2
+
+
+
+
+
+
+ right3
+
+
+
+
+ right2
+
+
+
+
+ right1
+
+
+
+
+
+
+