Replace individual mocks for withTooltip with global mock (#5962)

This commit is contained in:
Janne Savolainen authored and GitHub committed 2022-08-02 10:06:37 -04:00
1 parent 57e4e29a16
commit 83232440dc
38 files changed
+1347 -753

No files matched your search

@@ -1046,7 +1046,6 @@ exports[`add custom helm repository in preferences when navigating to preference
class="Icon material interactive focusable"
data-testid="remove-helm-repository-Some active repository"
tabindex="0"
tooltip="Remove"
>
<span
class="icon"
@@ -1055,6 +1054,11 @@ exports[`add custom helm repository in preferences when navigating to preference
delete
</span>
</i>
<div
data-testid="tooltip-content-for-remove-helm-repository-Some active repository"
>
Remove
</div>
</div>
</div>
<div />
@@ -1631,7 +1635,6 @@ exports[`add custom helm repository in preferences when navigating to preference
class="Icon material interactive focusable"
data-testid="remove-helm-repository-Some active repository"
tabindex="0"
tooltip="Remove"
>
<span
class="icon"
@@ -1640,6 +1643,11 @@ exports[`add custom helm repository in preferences when navigating to preference
delete
</span>
</i>
<div
data-testid="tooltip-content-for-remove-helm-repository-Some active repository"
>
Remove
</div>
</div>
</div>
<div />
@@ -1820,7 +1828,6 @@ exports[`add custom helm repository in preferences when navigating to preference
More
<i
class="Icon material focusable small"
tooltip="More"
>
<span
class="icon"
@@ -1829,6 +1836,9 @@ exports[`add custom helm repository in preferences when navigating to preference
add
</span>
</i>
<div>
More
</div>
</button>
</div>
</div>
@@ -2325,7 +2335,6 @@ exports[`add custom helm repository in preferences when navigating to preference
class="Icon material interactive focusable"
data-testid="remove-helm-repository-Some active repository"
tabindex="0"
tooltip="Remove"
>
<span
class="icon"
@@ -2334,6 +2343,11 @@ exports[`add custom helm repository in preferences when navigating to preference
delete
</span>
</i>
<div
data-testid="tooltip-content-for-remove-helm-repository-Some active repository"
>
Remove
</div>
</div>
</div>
<div />
@@ -2918,7 +2932,6 @@ exports[`add custom helm repository in preferences when navigating to preference
class="Icon material interactive focusable"
data-testid="remove-helm-repository-Some active repository"
tabindex="0"
tooltip="Remove"
>
<span
class="icon"
@@ -2927,6 +2940,11 @@ exports[`add custom helm repository in preferences when navigating to preference
delete
</span>
</i>
<div
data-testid="tooltip-content-for-remove-helm-repository-Some active repository"
>
Remove
</div>
</div>
</div>
<div />
@@ -3107,7 +3125,6 @@ exports[`add custom helm repository in preferences when navigating to preference
More
<i
class="Icon material focusable small"
tooltip="More"
>
<span
class="icon"
@@ -3116,6 +3133,9 @@ exports[`add custom helm repository in preferences when navigating to preference
add
</span>
</i>
<div>
More
</div>
</button>
</div>
</div>
@@ -3612,7 +3632,6 @@ exports[`add custom helm repository in preferences when navigating to preference
class="Icon material interactive focusable"
data-testid="remove-helm-repository-Some active repository"
tabindex="0"
tooltip="Remove"
>
<span
class="icon"
@@ -3621,6 +3640,11 @@ exports[`add custom helm repository in preferences when navigating to preference
delete
</span>
</i>
<div
data-testid="tooltip-content-for-remove-helm-repository-Some active repository"
>
Remove
</div>
</div>
</div>
<div />
@@ -3801,7 +3825,6 @@ exports[`add custom helm repository in preferences when navigating to preference
More
<i
class="Icon material focusable small"
tooltip="More"
>
<span
class="icon"
@@ -3810,6 +3833,9 @@ exports[`add custom helm repository in preferences when navigating to preference
remove
</span>
</i>
<div>
More
</div>
</button>
<div
data-testid="maximal-options-for-custom-helm-repository-dialog"
@@ -3861,7 +3887,6 @@ exports[`add custom helm repository in preferences when navigating to preference
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Browse"
>
<span
class="icon"
@@ -3870,6 +3895,9 @@ exports[`add custom helm repository in preferences when navigating to preference
folder
</span>
</i>
<div>
Browse
</div>
</div>
<div
class="flex gaps align-center"
@@ -3896,7 +3924,6 @@ exports[`add custom helm repository in preferences when navigating to preference
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Browse"
>
<span
class="icon"
@@ -3905,6 +3932,9 @@ exports[`add custom helm repository in preferences when navigating to preference
folder
</span>
</i>
<div>
Browse
</div>
</div>
<div
class="flex gaps align-center"
@@ -3931,7 +3961,6 @@ exports[`add custom helm repository in preferences when navigating to preference
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Browse"
>
<span
class="icon"
@@ -3940,6 +3969,9 @@ exports[`add custom helm repository in preferences when navigating to preference
folder
</span>
</i>
<div>
Browse
</div>
</div>
<div
class="SubTitle"
@@ -4482,7 +4514,6 @@ exports[`add custom helm repository in preferences when navigating to preference
class="Icon material interactive focusable"
data-testid="remove-helm-repository-Some active repository"
tabindex="0"
tooltip="Remove"
>
<span
class="icon"
@@ -4491,6 +4522,11 @@ exports[`add custom helm repository in preferences when navigating to preference
delete
</span>
</i>
<div
data-testid="tooltip-content-for-remove-helm-repository-Some active repository"
>
Remove
</div>
</div>
</div>
<div />
@@ -4671,7 +4707,6 @@ exports[`add custom helm repository in preferences when navigating to preference
More
<i
class="Icon material focusable small"
tooltip="More"
>
<span
class="icon"
@@ -4680,6 +4715,9 @@ exports[`add custom helm repository in preferences when navigating to preference
add
</span>
</i>
<div>
More
</div>
</button>
</div>
</div>
@@ -5176,7 +5214,6 @@ exports[`add custom helm repository in preferences when navigating to preference
class="Icon material interactive focusable"
data-testid="remove-helm-repository-Some active repository"
tabindex="0"
tooltip="Remove"
>
<span
class="icon"
@@ -5185,6 +5222,11 @@ exports[`add custom helm repository in preferences when navigating to preference
delete
</span>
</i>
<div
data-testid="tooltip-content-for-remove-helm-repository-Some active repository"
>
Remove
</div>
</div>
</div>
<div />
@@ -5365,7 +5407,6 @@ exports[`add custom helm repository in preferences when navigating to preference
More
<i
class="Icon material focusable small"
tooltip="More"
>
<span
class="icon"
@@ -5374,6 +5415,9 @@ exports[`add custom helm repository in preferences when navigating to preference
remove
</span>
</i>
<div>
More
</div>
</button>
<div
data-testid="maximal-options-for-custom-helm-repository-dialog"
@@ -5425,7 +5469,6 @@ exports[`add custom helm repository in preferences when navigating to preference
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Browse"
>
<span
class="icon"
@@ -5434,6 +5477,9 @@ exports[`add custom helm repository in preferences when navigating to preference
folder
</span>
</i>
<div>
Browse
</div>
</div>
<div
class="flex gaps align-center"
@@ -5460,7 +5506,6 @@ exports[`add custom helm repository in preferences when navigating to preference
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Browse"
>
<span
class="icon"
@@ -5469,6 +5514,9 @@ exports[`add custom helm repository in preferences when navigating to preference
folder
</span>
</i>
<div>
Browse
</div>
</div>
<div
class="flex gaps align-center"
@@ -5495,7 +5543,6 @@ exports[`add custom helm repository in preferences when navigating to preference
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Browse"
>
<span
class="icon"
@@ -5504,6 +5551,9 @@ exports[`add custom helm repository in preferences when navigating to preference
folder
</span>
</i>
<div>
Browse
</div>
</div>
<div
class="SubTitle"
@@ -6046,7 +6096,6 @@ exports[`add custom helm repository in preferences when navigating to preference
class="Icon material interactive focusable"
data-testid="remove-helm-repository-Some active repository"
tabindex="0"
tooltip="Remove"
>
<span
class="icon"
@@ -6055,6 +6104,11 @@ exports[`add custom helm repository in preferences when navigating to preference
delete
</span>
</i>
<div
data-testid="tooltip-content-for-remove-helm-repository-Some active repository"
>
Remove
</div>
</div>
</div>
<div />
@@ -6235,7 +6289,6 @@ exports[`add custom helm repository in preferences when navigating to preference
More
<i
class="Icon material focusable small"
tooltip="More"
>
<span
class="icon"
@@ -6244,6 +6297,9 @@ exports[`add custom helm repository in preferences when navigating to preference
add
</span>
</i>
<div>
More
</div>
</button>
</div>
</div>
@@ -6740,7 +6796,6 @@ exports[`add custom helm repository in preferences when navigating to preference
class="Icon material interactive focusable"
data-testid="remove-helm-repository-Some active repository"
tabindex="0"
tooltip="Remove"
>
<span
class="icon"
@@ -6749,6 +6804,11 @@ exports[`add custom helm repository in preferences when navigating to preference
delete
</span>
</i>
<div
data-testid="tooltip-content-for-remove-helm-repository-Some active repository"
>
Remove
</div>
</div>
</div>
<div />
@@ -8101,7 +8161,6 @@ exports[`add custom helm repository in preferences when navigating to preference
More
<i
class="Icon material focusable small"
tooltip="More"
>
<span
class="icon"
@@ -8110,6 +8169,9 @@ exports[`add custom helm repository in preferences when navigating to preference
add
</span>
</i>
<div>
More
</div>
</button>
</div>
</div>
@@ -1046,7 +1046,6 @@ exports[`add helm repository from list in preferences when navigating to prefere
class="Icon material interactive focusable"
data-testid="remove-helm-repository-Some already active repository"
tabindex="0"
tooltip="Remove"
>
<span
class="icon"
@@ -1055,6 +1054,11 @@ exports[`add helm repository from list in preferences when navigating to prefere
delete
</span>
</i>
<div
data-testid="tooltip-content-for-remove-helm-repository-Some already active repository"
>
Remove
</div>
</div>
</div>
<div />
@@ -1633,7 +1637,6 @@ exports[`add helm repository from list in preferences when navigating to prefere
class="Icon material interactive focusable"
data-testid="remove-helm-repository-Some already active repository"
tabindex="0"
tooltip="Remove"
>
<span
class="icon"
@@ -1642,6 +1645,11 @@ exports[`add helm repository from list in preferences when navigating to prefere
delete
</span>
</i>
<div
data-testid="tooltip-content-for-remove-helm-repository-Some already active repository"
>
Remove
</div>
</div>
</div>
<div />
@@ -2269,7 +2277,6 @@ exports[`add helm repository from list in preferences when navigating to prefere
class="Icon material interactive focusable"
data-testid="remove-helm-repository-Some already active repository"
tabindex="0"
tooltip="Remove"
>
<span
class="icon"
@@ -2278,6 +2285,11 @@ exports[`add helm repository from list in preferences when navigating to prefere
delete
</span>
</i>
<div
data-testid="tooltip-content-for-remove-helm-repository-Some already active repository"
>
Remove
</div>
</div>
</div>
<div />
@@ -2854,7 +2866,6 @@ exports[`add helm repository from list in preferences when navigating to prefere
class="Icon material interactive focusable"
data-testid="remove-helm-repository-Some already active repository"
tabindex="0"
tooltip="Remove"
>
<span
class="icon"
@@ -2863,6 +2874,11 @@ exports[`add helm repository from list in preferences when navigating to prefere
delete
</span>
</i>
<div
data-testid="tooltip-content-for-remove-helm-repository-Some already active repository"
>
Remove
</div>
</div>
</div>
<div />
@@ -4017,7 +4033,6 @@ exports[`add helm repository from list in preferences when navigating to prefere
class="Icon material interactive focusable"
data-testid="remove-helm-repository-Some already active repository"
tabindex="0"
tooltip="Remove"
>
<span
class="icon"
@@ -4026,6 +4041,11 @@ exports[`add helm repository from list in preferences when navigating to prefere
delete
</span>
</i>
<div
data-testid="tooltip-content-for-remove-helm-repository-Some already active repository"
>
Remove
</div>
</div>
<div
class="item flex gaps align-center justify-space-between repo"
@@ -4047,7 +4067,6 @@ exports[`add helm repository from list in preferences when navigating to prefere
class="Icon material interactive focusable"
data-testid="remove-helm-repository-Some to be added repository"
tabindex="0"
tooltip="Remove"
>
<span
class="icon"
@@ -4056,6 +4075,11 @@ exports[`add helm repository from list in preferences when navigating to prefere
delete
</span>
</i>
<div
data-testid="tooltip-content-for-remove-helm-repository-Some to be added repository"
>
Remove
</div>
</div>
</div>
<div />
@@ -4634,7 +4658,6 @@ exports[`add helm repository from list in preferences when navigating to prefere
class="Icon material interactive focusable"
data-testid="remove-helm-repository-Some already active repository"
tabindex="0"
tooltip="Remove"
>
<span
class="icon"
@@ -4643,6 +4666,11 @@ exports[`add helm repository from list in preferences when navigating to prefere
delete
</span>
</i>
<div
data-testid="tooltip-content-for-remove-helm-repository-Some already active repository"
>
Remove
</div>
</div>
<div
class="item flex gaps align-center justify-space-between repo"
@@ -4664,7 +4692,6 @@ exports[`add helm repository from list in preferences when navigating to prefere
class="Icon material interactive focusable"
data-testid="remove-helm-repository-Some to be added repository"
tabindex="0"
tooltip="Remove"
>
<span
class="icon"
@@ -4673,6 +4700,11 @@ exports[`add helm repository from list in preferences when navigating to prefere
delete
</span>
</i>
<div
data-testid="tooltip-content-for-remove-helm-repository-Some to be added repository"
>
Remove
</div>
</div>
</div>
<div />
@@ -5310,7 +5342,6 @@ exports[`add helm repository from list in preferences when navigating to prefere
class="Icon material interactive focusable"
data-testid="remove-helm-repository-Some already active repository"
tabindex="0"
tooltip="Remove"
>
<span
class="icon"
@@ -5319,6 +5350,11 @@ exports[`add helm repository from list in preferences when navigating to prefere
delete
</span>
</i>
<div
data-testid="tooltip-content-for-remove-helm-repository-Some already active repository"
>
Remove
</div>
</div>
<div
class="item flex gaps align-center justify-space-between repo"
@@ -5340,7 +5376,6 @@ exports[`add helm repository from list in preferences when navigating to prefere
class="Icon material interactive focusable"
data-testid="remove-helm-repository-Some to be added repository"
tabindex="0"
tooltip="Remove"
>
<span
class="icon"
@@ -5349,6 +5384,11 @@ exports[`add helm repository from list in preferences when navigating to prefere
delete
</span>
</i>
<div
data-testid="tooltip-content-for-remove-helm-repository-Some to be added repository"
>
Remove
</div>
</div>
</div>
<div />
@@ -3720,7 +3720,6 @@ exports[`listing active helm repositories in preferences when navigating to pref
class="Icon material interactive focusable"
data-testid="remove-helm-repository-some-repository"
tabindex="0"
tooltip="Remove"
>
<span
class="icon"
@@ -3729,6 +3728,11 @@ exports[`listing active helm repositories in preferences when navigating to pref
delete
</span>
</i>
<div
data-testid="tooltip-content-for-remove-helm-repository-some-repository"
>
Remove
</div>
</div>
<div
class="item flex gaps align-center justify-space-between repo"
@@ -3750,7 +3754,6 @@ exports[`listing active helm repositories in preferences when navigating to pref
class="Icon material interactive focusable"
data-testid="remove-helm-repository-some-other-repository"
tabindex="0"
tooltip="Remove"
>
<span
class="icon"
@@ -3759,6 +3762,11 @@ exports[`listing active helm repositories in preferences when navigating to pref
delete
</span>
</i>
<div
data-testid="tooltip-content-for-remove-helm-repository-some-other-repository"
>
Remove
</div>
</div>
</div>
<div />
@@ -1046,7 +1046,6 @@ exports[`remove helm repository from list of active repositories in preferences
class="Icon material interactive focusable"
data-testid="remove-helm-repository-some-active-repository"
tabindex="0"
tooltip="Remove"
>
<span
class="icon"
@@ -1055,6 +1054,11 @@ exports[`remove helm repository from list of active repositories in preferences
delete
</span>
</i>
<div
data-testid="tooltip-content-for-remove-helm-repository-some-active-repository"
>
Remove
</div>
</div>
</div>
<div />
@@ -1631,7 +1635,6 @@ exports[`remove helm repository from list of active repositories in preferences
class="Icon material interactive focusable"
data-testid="remove-helm-repository-some-active-repository"
tabindex="0"
tooltip="Remove"
>
<span
class="icon"
@@ -1640,6 +1643,11 @@ exports[`remove helm repository from list of active repositories in preferences
delete
</span>
</i>
<div
data-testid="tooltip-content-for-remove-helm-repository-some-active-repository"
>
Remove
</div>
</div>
</div>
<div />
@@ -18,11 +18,6 @@ import showSuccessNotificationInjectable from "../../renderer/components/notific
import showErrorNotificationInjectable from "../../renderer/components/notifications/show-error-notification.injectable";
import type { AsyncResult } from "../../common/utils/async-result";
// TODO: Make tooltips free of side effects by making it deterministic
jest.mock("../../renderer/components/tooltip/withTooltip", () => ({
withTooltip: (target: any) => target,
}));
describe("add custom helm repository in preferences", () => {
let applicationBuilder: ApplicationBuilder;
let showSuccessNotificationMock: jest.Mock;
@@ -16,11 +16,6 @@ import showSuccessNotificationInjectable from "../../renderer/components/notific
import showErrorNotificationInjectable from "../../renderer/components/notifications/show-error-notification.injectable";
import type { AsyncResult } from "../../common/utils/async-result";
// TODO: Make tooltips free of side effects by making it deterministic
jest.mock("../../renderer/components/tooltip/withTooltip", () => ({
withTooltip: (target: any) => target,
}));
describe("add helm repository from list in preferences", () => {
let applicationBuilder: ApplicationBuilder;
let showSuccessNotificationMock: jest.Mock;
@@ -444,7 +444,6 @@ exports[`installing helm chart from previously opened tab given tab for installi
<i
class="Icon material interactive focusable small"
tabindex="0"
tooltip="Close ⌘+W"
>
<span
class="icon"
@@ -453,6 +452,9 @@ exports[`installing helm chart from previously opened tab given tab for installi
close
</span>
</i>
<div>
Close ⌘+W
</div>
</div>
</div>
</div>
@@ -469,7 +471,6 @@ exports[`installing helm chart from previously opened tab given tab for installi
class="Icon new-dock-tab material interactive focusable"
id="menu-actions-for-dock"
tabindex="0"
tooltip="New tab"
>
<span
class="icon"
@@ -478,11 +479,13 @@ exports[`installing helm chart from previously opened tab given tab for installi
add
</span>
</i>
<div>
New tab
</div>
</div>
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Fit to window"
>
<span
class="icon"
@@ -491,10 +494,12 @@ exports[`installing helm chart from previously opened tab given tab for installi
fullscreen
</span>
</i>
<div>
Fit to window
</div>
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Minimize"
>
<span
class="icon"
@@ -503,6 +508,9 @@ exports[`installing helm chart from previously opened tab given tab for installi
keyboard_arrow_down
</span>
</i>
<div>
Minimize
</div>
</div>
</div>
<div
@@ -966,7 +974,6 @@ exports[`installing helm chart from previously opened tab given tab for installi
<i
class="Icon material interactive focusable small"
tabindex="0"
tooltip="Close ⌘+W"
>
<span
class="icon"
@@ -975,6 +982,9 @@ exports[`installing helm chart from previously opened tab given tab for installi
close
</span>
</i>
<div>
Close ⌘+W
</div>
</div>
</div>
</div>
@@ -991,7 +1001,6 @@ exports[`installing helm chart from previously opened tab given tab for installi
class="Icon new-dock-tab material interactive focusable"
id="menu-actions-for-dock"
tabindex="0"
tooltip="New tab"
>
<span
class="icon"
@@ -1000,11 +1009,13 @@ exports[`installing helm chart from previously opened tab given tab for installi
add
</span>
</i>
<div>
New tab
</div>
</div>
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Fit to window"
>
<span
class="icon"
@@ -1013,10 +1024,12 @@ exports[`installing helm chart from previously opened tab given tab for installi
fullscreen
</span>
</i>
<div>
Fit to window
</div>
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Minimize"
>
<span
class="icon"
@@ -1025,6 +1038,9 @@ exports[`installing helm chart from previously opened tab given tab for installi
keyboard_arrow_down
</span>
</i>
<div>
Minimize
</div>
</div>
</div>
<div
@@ -496,7 +496,6 @@ exports[`opening dock tab for installing helm chart given application is started
class="Icon new-dock-tab material interactive focusable"
id="menu-actions-for-dock"
tabindex="0"
tooltip="New tab"
>
<span
class="icon"
@@ -505,6 +504,9 @@ exports[`opening dock tab for installing helm chart given application is started
add
</span>
</i>
<div>
New tab
</div>
</div>
</div>
</div>
@@ -1175,7 +1177,6 @@ exports[`opening dock tab for installing helm chart given application is started
class="Icon new-dock-tab material interactive focusable"
id="menu-actions-for-dock"
tabindex="0"
tooltip="New tab"
>
<span
class="icon"
@@ -1184,6 +1185,9 @@ exports[`opening dock tab for installing helm chart given application is started
add
</span>
</i>
<div>
New tab
</div>
</div>
</div>
</div>
@@ -1854,7 +1858,6 @@ exports[`opening dock tab for installing helm chart given application is started
class="Icon new-dock-tab material interactive focusable"
id="menu-actions-for-dock"
tabindex="0"
tooltip="New tab"
>
<span
class="icon"
@@ -1863,6 +1866,9 @@ exports[`opening dock tab for installing helm chart given application is started
add
</span>
</i>
<div>
New tab
</div>
</div>
</div>
</div>
@@ -1887,7 +1893,6 @@ exports[`opening dock tab for installing helm chart given application is started
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Copy"
>
<span
class="icon"
@@ -1896,11 +1901,13 @@ exports[`opening dock tab for installing helm chart given application is started
content_copy
</span>
</i>
<div>
Copy
</div>
</div>
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Close"
>
<span
class="icon"
@@ -1909,6 +1916,9 @@ exports[`opening dock tab for installing helm chart given application is started
close
</span>
</i>
<div>
Close
</div>
</div>
<div
class="drawer-content flex column box grow"
@@ -2586,7 +2596,6 @@ exports[`opening dock tab for installing helm chart given application is started
class="Icon new-dock-tab material interactive focusable"
id="menu-actions-for-dock"
tabindex="0"
tooltip="New tab"
>
<span
class="icon"
@@ -2595,6 +2604,9 @@ exports[`opening dock tab for installing helm chart given application is started
add
</span>
</i>
<div>
New tab
</div>
</div>
</div>
</div>
@@ -2619,7 +2631,6 @@ exports[`opening dock tab for installing helm chart given application is started
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Copy"
>
<span
class="icon"
@@ -2628,11 +2639,13 @@ exports[`opening dock tab for installing helm chart given application is started
content_copy
</span>
</i>
<div>
Copy
</div>
</div>
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Close"
>
<span
class="icon"
@@ -2641,6 +2654,9 @@ exports[`opening dock tab for installing helm chart given application is started
close
</span>
</i>
<div>
Close
</div>
</div>
<div
class="drawer-content flex column box grow"
@@ -3497,7 +3513,6 @@ exports[`opening dock tab for installing helm chart given application is started
class="Icon new-dock-tab material interactive focusable"
id="menu-actions-for-dock"
tabindex="0"
tooltip="New tab"
>
<span
class="icon"
@@ -3506,6 +3521,9 @@ exports[`opening dock tab for installing helm chart given application is started
add
</span>
</i>
<div>
New tab
</div>
</div>
</div>
</div>
@@ -3530,7 +3548,6 @@ exports[`opening dock tab for installing helm chart given application is started
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Copy"
>
<span
class="icon"
@@ -3539,11 +3556,13 @@ exports[`opening dock tab for installing helm chart given application is started
content_copy
</span>
</i>
<div>
Copy
</div>
</div>
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Close"
>
<span
class="icon"
@@ -3552,6 +3571,9 @@ exports[`opening dock tab for installing helm chart given application is started
close
</span>
</i>
<div>
Close
</div>
</div>
<div
class="drawer-content flex column box grow"
@@ -4418,7 +4440,6 @@ exports[`opening dock tab for installing helm chart given application is started
class="Icon new-dock-tab material interactive focusable"
id="menu-actions-for-dock"
tabindex="0"
tooltip="New tab"
>
<span
class="icon"
@@ -4427,6 +4448,9 @@ exports[`opening dock tab for installing helm chart given application is started
add
</span>
</i>
<div>
New tab
</div>
</div>
</div>
</div>
@@ -4451,7 +4475,6 @@ exports[`opening dock tab for installing helm chart given application is started
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Copy"
>
<span
class="icon"
@@ -4460,11 +4483,13 @@ exports[`opening dock tab for installing helm chart given application is started
content_copy
</span>
</i>
<div>
Copy
</div>
</div>
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Close"
>
<span
class="icon"
@@ -4473,6 +4498,9 @@ exports[`opening dock tab for installing helm chart given application is started
close
</span>
</i>
<div>
Close
</div>
</div>
<div
class="drawer-content flex column box grow"
@@ -5329,7 +5357,6 @@ exports[`opening dock tab for installing helm chart given application is started
class="Icon new-dock-tab material interactive focusable"
id="menu-actions-for-dock"
tabindex="0"
tooltip="New tab"
>
<span
class="icon"
@@ -5338,6 +5365,9 @@ exports[`opening dock tab for installing helm chart given application is started
add
</span>
</i>
<div>
New tab
</div>
</div>
</div>
</div>
@@ -5362,7 +5392,6 @@ exports[`opening dock tab for installing helm chart given application is started
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Copy"
>
<span
class="icon"
@@ -5371,11 +5400,13 @@ exports[`opening dock tab for installing helm chart given application is started
content_copy
</span>
</i>
<div>
Copy
</div>
</div>
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Close"
>
<span
class="icon"
@@ -5384,6 +5415,9 @@ exports[`opening dock tab for installing helm chart given application is started
close
</span>
</i>
<div>
Close
</div>
</div>
<div
class="drawer-content flex column box grow"
@@ -6273,7 +6307,6 @@ exports[`opening dock tab for installing helm chart given application is started
<i
class="Icon material interactive focusable small"
tabindex="0"
tooltip="Close ⌘+W"
>
<span
class="icon"
@@ -6282,6 +6315,9 @@ exports[`opening dock tab for installing helm chart given application is started
close
</span>
</i>
<div>
Close ⌘+W
</div>
</div>
</div>
</div>
@@ -6298,7 +6334,6 @@ exports[`opening dock tab for installing helm chart given application is started
class="Icon new-dock-tab material interactive focusable"
id="menu-actions-for-dock"
tabindex="0"
tooltip="New tab"
>
<span
class="icon"
@@ -6307,11 +6342,13 @@ exports[`opening dock tab for installing helm chart given application is started
add
</span>
</i>
<div>
New tab
</div>
</div>
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Fit to window"
>
<span
class="icon"
@@ -6320,10 +6357,12 @@ exports[`opening dock tab for installing helm chart given application is started
fullscreen
</span>
</i>
<div>
Fit to window
</div>
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Minimize"
>
<span
class="icon"
@@ -6332,6 +6371,9 @@ exports[`opening dock tab for installing helm chart given application is started
keyboard_arrow_down
</span>
</i>
<div>
Minimize
</div>
</div>
</div>
<div
@@ -31,11 +31,6 @@ import dockStoreInjectable from "../../../renderer/components/dock/dock/store.in
import readJsonFileInjectable from "../../../common/fs/read-json-file.injectable";
import type { DiContainer } from "@ogre-tools/injectable";
// TODO: Make tooltips free of side effects by making it deterministic
jest.mock("../../../renderer/components/tooltip/withTooltip", () => ({
withTooltip: (target: any) => target,
}));
describe("installing helm chart from new tab", () => {
let builder: ApplicationBuilder;
let rendererDi: DiContainer;
@@ -24,11 +24,6 @@ import { controlWhenStoragesAreReady } from "../../../renderer/utils/create-stor
import type { DiContainer } from "@ogre-tools/injectable";
import callForCreateHelmReleaseInjectable from "../../../renderer/components/+helm-releases/create-release/call-for-create-helm-release.injectable";
// TODO: Make tooltips free of side effects by making it deterministic
jest.mock("../../../renderer/components/tooltip/withTooltip", () => ({
withTooltip: (target: any) => target,
}));
describe("installing helm chart from previously opened tab", () => {
let builder: ApplicationBuilder;
let rendererDi: DiContainer;
@@ -25,11 +25,6 @@ import hostedClusterIdInjectable from "../../../renderer/cluster-frame-context/h
import dockStoreInjectable from "../../../renderer/components/dock/dock/store.injectable";
import type { DiContainer } from "@ogre-tools/injectable";
// TODO: Make tooltips free of side effects by making it deterministic
jest.mock("../../../renderer/components/tooltip/withTooltip", () => ({
withTooltip: (target: any) => target,
}));
describe("opening dock tab for installing helm chart", () => {
let builder: ApplicationBuilder;
let rendererDi: DiContainer;
@@ -17,11 +17,6 @@ import type { Logger } from "../../common/logger";
import callForPublicHelmRepositoriesInjectable from "../../renderer/components/+preferences/kubernetes/helm-charts/adding-of-public-helm-repository/public-helm-repositories/call-for-public-helm-repositories.injectable";
import showErrorNotificationInjectable from "../../renderer/components/notifications/show-error-notification.injectable";
// TODO: Make tooltips free of side effects by making it deterministic
jest.mock("../../renderer/components/tooltip/withTooltip", () => ({
withTooltip: (target: any) => target,
}));
describe("listing active helm repositories in preferences", () => {
let applicationBuilder: ApplicationBuilder;
let rendered: RenderResult;
@@ -15,11 +15,6 @@ import type { HelmRepo } from "../../common/helm/helm-repo";
import callForPublicHelmRepositoriesInjectable from "../../renderer/components/+preferences/kubernetes/helm-charts/adding-of-public-helm-repository/public-helm-repositories/call-for-public-helm-repositories.injectable";
import type { AsyncResult } from "../../common/utils/async-result";
// TODO: Make tooltips free of side effects by making it deterministic
jest.mock("../../renderer/components/tooltip/withTooltip", () => ({
withTooltip: (target: any) => target,
}));
describe("remove helm repository from list of active repositories in preferences", () => {
let applicationBuilder: ApplicationBuilder;
let rendered: RenderResult;