1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

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

This commit is contained in:
Janne Savolainen 2022-08-02 17:06:37 +03:00 committed by GitHub
parent 57e4e29a16
commit 83232440dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
38 changed files with 1347 additions and 753 deletions

View File

@ -288,7 +288,11 @@ exports[`add-cluster - navigation using application menu when navigating to add
</p>
<div
class="flex column"
/>
>
<textarea
data-testid="monaco-editor-for-undefined"
/>
</div>
<div
class="actions-panel"
>
@ -299,6 +303,7 @@ exports[`add-cluster - navigation using application menu when navigating to add
>
Add clusters
</button>
<div />
</div>
</div>
<div

View File

@ -6,16 +6,6 @@
import type { RenderResult } from "@testing-library/react";
import type { ApplicationBuilder } from "../../renderer/components/test-utils/get-application-builder";
import { getApplicationBuilder } from "../../renderer/components/test-utils/get-application-builder";
import React from "react";
// TODO: Make components free of side effects by making them deterministic
jest.mock("../../renderer/components/tooltip/withTooltip", () => ({
withTooltip: (Target: any) => ({ tooltip, tooltipOverrideDisabled, ...props }: any) => <Target {...props} />,
}));
jest.mock("../../renderer/components/monaco-editor/monaco-editor", () => ({
MonacoEditor: () => null,
}));
describe("add-cluster - navigation using application menu", () => {
let applicationBuilder: ApplicationBuilder;

View File

@ -503,7 +503,6 @@ exports[`cluster - order of sidebar items when rendered renders 1`] = `
>
<i
class="Icon material interactive focusable small"
id="tooltip_target_14"
tabindex="0"
>
<span
@ -512,8 +511,10 @@ exports[`cluster - order of sidebar items when rendered renders 1`] = `
>
close
</span>
<div />
</i>
<div>
Close ⌘+W
</div>
</div>
</div>
</div>
@ -537,12 +538,13 @@ exports[`cluster - order of sidebar items when rendered renders 1`] = `
>
add
</span>
<div />
</i>
<div>
New tab
</div>
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_16"
tabindex="0"
>
<span
@ -551,11 +553,12 @@ exports[`cluster - order of sidebar items when rendered renders 1`] = `
>
fullscreen
</span>
<div />
</i>
<div>
Fit to window
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_17"
tabindex="0"
>
<span
@ -564,8 +567,10 @@ exports[`cluster - order of sidebar items when rendered renders 1`] = `
>
keyboard_arrow_up
</span>
<div />
</i>
<div>
Open
</div>
</div>
</div>
</div>
@ -1135,7 +1140,6 @@ exports[`cluster - order of sidebar items when rendered when parent is expanded
>
<i
class="Icon material interactive focusable small"
id="tooltip_target_52"
tabindex="0"
>
<span
@ -1144,8 +1148,10 @@ exports[`cluster - order of sidebar items when rendered when parent is expanded
>
close
</span>
<div />
</i>
<div>
Close ⌘+W
</div>
</div>
</div>
</div>
@ -1169,12 +1175,13 @@ exports[`cluster - order of sidebar items when rendered when parent is expanded
>
add
</span>
<div />
</i>
<div>
New tab
</div>
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_54"
tabindex="0"
>
<span
@ -1183,11 +1190,12 @@ exports[`cluster - order of sidebar items when rendered when parent is expanded
>
fullscreen
</span>
<div />
</i>
<div>
Fit to window
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_55"
tabindex="0"
>
<span
@ -1196,8 +1204,10 @@ exports[`cluster - order of sidebar items when rendered when parent is expanded
>
keyboard_arrow_up
</span>
<div />
</i>
<div>
Open
</div>
</div>
</div>
</div>

View File

@ -472,7 +472,6 @@ exports[`cluster - sidebar and tab navigation for core given core registrations
>
<i
class="Icon material interactive focusable small"
id="tooltip_target_177"
tabindex="0"
>
<span
@ -481,8 +480,10 @@ exports[`cluster - sidebar and tab navigation for core given core registrations
>
close
</span>
<div />
</i>
<div>
Close ⌘+W
</div>
</div>
</div>
</div>
@ -506,12 +507,13 @@ exports[`cluster - sidebar and tab navigation for core given core registrations
>
add
</span>
<div />
</i>
<div>
New tab
</div>
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_179"
tabindex="0"
>
<span
@ -520,11 +522,12 @@ exports[`cluster - sidebar and tab navigation for core given core registrations
>
fullscreen
</span>
<div />
</i>
<div>
Fit to window
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_180"
tabindex="0"
>
<span
@ -533,8 +536,10 @@ exports[`cluster - sidebar and tab navigation for core given core registrations
>
keyboard_arrow_up
</span>
<div />
</i>
<div>
Open
</div>
</div>
</div>
</div>
@ -1015,7 +1020,6 @@ exports[`cluster - sidebar and tab navigation for core given core registrations
>
<i
class="Icon material interactive focusable small"
id="tooltip_target_215"
tabindex="0"
>
<span
@ -1024,8 +1028,10 @@ exports[`cluster - sidebar and tab navigation for core given core registrations
>
close
</span>
<div />
</i>
<div>
Close ⌘+W
</div>
</div>
</div>
</div>
@ -1049,12 +1055,13 @@ exports[`cluster - sidebar and tab navigation for core given core registrations
>
add
</span>
<div />
</i>
<div>
New tab
</div>
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_217"
tabindex="0"
>
<span
@ -1063,11 +1070,12 @@ exports[`cluster - sidebar and tab navigation for core given core registrations
>
fullscreen
</span>
<div />
</i>
<div>
Fit to window
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_218"
tabindex="0"
>
<span
@ -1076,8 +1084,10 @@ exports[`cluster - sidebar and tab navigation for core given core registrations
>
keyboard_arrow_up
</span>
<div />
</i>
<div>
Open
</div>
</div>
</div>
</div>
@ -1580,7 +1590,6 @@ exports[`cluster - sidebar and tab navigation for core given core registrations
>
<i
class="Icon material interactive focusable small"
id="tooltip_target_272"
tabindex="0"
>
<span
@ -1589,8 +1598,10 @@ exports[`cluster - sidebar and tab navigation for core given core registrations
>
close
</span>
<div />
</i>
<div>
Close ⌘+W
</div>
</div>
</div>
</div>
@ -1614,12 +1625,13 @@ exports[`cluster - sidebar and tab navigation for core given core registrations
>
add
</span>
<div />
</i>
<div>
New tab
</div>
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_274"
tabindex="0"
>
<span
@ -1628,11 +1640,12 @@ exports[`cluster - sidebar and tab navigation for core given core registrations
>
fullscreen
</span>
<div />
</i>
<div>
Fit to window
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_275"
tabindex="0"
>
<span
@ -1641,8 +1654,10 @@ exports[`cluster - sidebar and tab navigation for core given core registrations
>
keyboard_arrow_up
</span>
<div />
</i>
<div>
Open
</div>
</div>
</div>
</div>
@ -2026,7 +2041,6 @@ exports[`cluster - sidebar and tab navigation for core given core registrations
>
<i
class="Icon material interactive focusable small"
id="tooltip_target_332"
tabindex="0"
>
<span
@ -2035,8 +2049,10 @@ exports[`cluster - sidebar and tab navigation for core given core registrations
>
close
</span>
<div />
</i>
<div>
Close ⌘+W
</div>
</div>
</div>
</div>
@ -2060,12 +2076,13 @@ exports[`cluster - sidebar and tab navigation for core given core registrations
>
add
</span>
<div />
</i>
<div>
New tab
</div>
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_334"
tabindex="0"
>
<span
@ -2074,11 +2091,12 @@ exports[`cluster - sidebar and tab navigation for core given core registrations
>
fullscreen
</span>
<div />
</i>
<div>
Fit to window
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_335"
tabindex="0"
>
<span
@ -2087,8 +2105,10 @@ exports[`cluster - sidebar and tab navigation for core given core registrations
>
keyboard_arrow_up
</span>
<div />
</i>
<div>
Open
</div>
</div>
</div>
</div>
@ -2449,7 +2469,6 @@ exports[`cluster - sidebar and tab navigation for core given core registrations
>
<i
class="Icon material interactive focusable small"
id="tooltip_target_14"
tabindex="0"
>
<span
@ -2458,8 +2477,10 @@ exports[`cluster - sidebar and tab navigation for core given core registrations
>
close
</span>
<div />
</i>
<div>
Close ⌘+W
</div>
</div>
</div>
</div>
@ -2483,12 +2504,13 @@ exports[`cluster - sidebar and tab navigation for core given core registrations
>
add
</span>
<div />
</i>
<div>
New tab
</div>
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_16"
tabindex="0"
>
<span
@ -2497,11 +2519,12 @@ exports[`cluster - sidebar and tab navigation for core given core registrations
>
fullscreen
</span>
<div />
</i>
<div>
Fit to window
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_17"
tabindex="0"
>
<span
@ -2510,8 +2533,10 @@ exports[`cluster - sidebar and tab navigation for core given core registrations
>
keyboard_arrow_up
</span>
<div />
</i>
<div>
Open
</div>
</div>
</div>
</div>
@ -3014,7 +3039,6 @@ exports[`cluster - sidebar and tab navigation for core given core registrations
>
<i
class="Icon material interactive focusable small"
id="tooltip_target_82"
tabindex="0"
>
<span
@ -3023,8 +3047,10 @@ exports[`cluster - sidebar and tab navigation for core given core registrations
>
close
</span>
<div />
</i>
<div>
Close ⌘+W
</div>
</div>
</div>
</div>
@ -3048,12 +3074,13 @@ exports[`cluster - sidebar and tab navigation for core given core registrations
>
add
</span>
<div />
</i>
<div>
New tab
</div>
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_84"
tabindex="0"
>
<span
@ -3062,11 +3089,12 @@ exports[`cluster - sidebar and tab navigation for core given core registrations
>
fullscreen
</span>
<div />
</i>
<div>
Fit to window
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_85"
tabindex="0"
>
<span
@ -3075,8 +3103,10 @@ exports[`cluster - sidebar and tab navigation for core given core registrations
>
keyboard_arrow_up
</span>
<div />
</i>
<div>
Open
</div>
</div>
</div>
</div>
@ -3557,7 +3587,6 @@ exports[`cluster - sidebar and tab navigation for core given core registrations
>
<i
class="Icon material interactive focusable small"
id="tooltip_target_139"
tabindex="0"
>
<span
@ -3566,8 +3595,10 @@ exports[`cluster - sidebar and tab navigation for core given core registrations
>
close
</span>
<div />
</i>
<div>
Close ⌘+W
</div>
</div>
</div>
</div>
@ -3591,12 +3622,13 @@ exports[`cluster - sidebar and tab navigation for core given core registrations
>
add
</span>
<div />
</i>
<div>
New tab
</div>
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_141"
tabindex="0"
>
<span
@ -3605,11 +3637,12 @@ exports[`cluster - sidebar and tab navigation for core given core registrations
>
fullscreen
</span>
<div />
</i>
<div>
Fit to window
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_142"
tabindex="0"
>
<span
@ -3618,8 +3651,10 @@ exports[`cluster - sidebar and tab navigation for core given core registrations
>
keyboard_arrow_up
</span>
<div />
</i>
<div>
Open
</div>
</div>
</div>
</div>

View File

@ -473,7 +473,6 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
<i
class="Icon material interactive focusable small"
tabindex="0"
tooltip="Close ⌘+W"
>
<span
class="icon"
@ -482,6 +481,9 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
close
</span>
</i>
<div>
Close ⌘+W
</div>
</div>
</div>
</div>
@ -498,7 +500,6 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
class="Icon new-dock-tab material interactive focusable"
id="menu-actions-for-dock"
tabindex="0"
tooltip="New tab"
>
<span
class="icon"
@ -507,11 +508,13 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
add
</span>
</i>
<div>
New tab
</div>
</div>
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Fit to window"
>
<span
class="icon"
@ -520,10 +523,12 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
fullscreen
</span>
</i>
<div>
Fit to window
</div>
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Open"
>
<span
class="icon"
@ -532,6 +537,9 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
keyboard_arrow_up
</span>
</i>
<div>
Open
</div>
</div>
</div>
</div>
@ -1013,7 +1021,6 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
<i
class="Icon material interactive focusable small"
tabindex="0"
tooltip="Close ⌘+W"
>
<span
class="icon"
@ -1022,6 +1029,9 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
close
</span>
</i>
<div>
Close ⌘+W
</div>
</div>
</div>
</div>
@ -1038,7 +1048,6 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
class="Icon new-dock-tab material interactive focusable"
id="menu-actions-for-dock"
tabindex="0"
tooltip="New tab"
>
<span
class="icon"
@ -1047,11 +1056,13 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
add
</span>
</i>
<div>
New tab
</div>
</div>
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Fit to window"
>
<span
class="icon"
@ -1060,10 +1071,12 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
fullscreen
</span>
</i>
<div>
Fit to window
</div>
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Open"
>
<span
class="icon"
@ -1072,6 +1085,9 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
keyboard_arrow_up
</span>
</i>
<div>
Open
</div>
</div>
</div>
</div>
@ -1593,7 +1609,6 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
<i
class="Icon material interactive focusable small"
tabindex="0"
tooltip="Close ⌘+W"
>
<span
class="icon"
@ -1602,6 +1617,9 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
close
</span>
</i>
<div>
Close ⌘+W
</div>
</div>
</div>
</div>
@ -1618,7 +1636,6 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
class="Icon new-dock-tab material interactive focusable"
id="menu-actions-for-dock"
tabindex="0"
tooltip="New tab"
>
<span
class="icon"
@ -1627,11 +1644,13 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
add
</span>
</i>
<div>
New tab
</div>
</div>
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Fit to window"
>
<span
class="icon"
@ -1640,10 +1659,12 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
fullscreen
</span>
</i>
<div>
Fit to window
</div>
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Open"
>
<span
class="icon"
@ -1652,6 +1673,9 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
keyboard_arrow_up
</span>
</i>
<div>
Open
</div>
</div>
</div>
</div>
@ -2093,7 +2117,6 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
<i
class="Icon material interactive focusable small"
tabindex="0"
tooltip="Close ⌘+W"
>
<span
class="icon"
@ -2102,6 +2125,9 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
close
</span>
</i>
<div>
Close ⌘+W
</div>
</div>
</div>
</div>
@ -2118,7 +2144,6 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
class="Icon new-dock-tab material interactive focusable"
id="menu-actions-for-dock"
tabindex="0"
tooltip="New tab"
>
<span
class="icon"
@ -2127,11 +2152,13 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
add
</span>
</i>
<div>
New tab
</div>
</div>
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Fit to window"
>
<span
class="icon"
@ -2140,10 +2167,12 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
fullscreen
</span>
</i>
<div>
Fit to window
</div>
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Open"
>
<span
class="icon"
@ -2152,6 +2181,9 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
keyboard_arrow_up
</span>
</i>
<div>
Open
</div>
</div>
</div>
</div>
@ -2593,7 +2625,6 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
<i
class="Icon material interactive focusable small"
tabindex="0"
tooltip="Close ⌘+W"
>
<span
class="icon"
@ -2602,6 +2633,9 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
close
</span>
</i>
<div>
Close ⌘+W
</div>
</div>
</div>
</div>
@ -2618,7 +2652,6 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
class="Icon new-dock-tab material interactive focusable"
id="menu-actions-for-dock"
tabindex="0"
tooltip="New tab"
>
<span
class="icon"
@ -2627,11 +2660,13 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
add
</span>
</i>
<div>
New tab
</div>
</div>
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Fit to window"
>
<span
class="icon"
@ -2640,10 +2675,12 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
fullscreen
</span>
</i>
<div>
Fit to window
</div>
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Open"
>
<span
class="icon"
@ -2652,6 +2689,9 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
keyboard_arrow_up
</span>
</i>
<div>
Open
</div>
</div>
</div>
</div>
@ -3052,7 +3092,6 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
<i
class="Icon material interactive focusable small"
tabindex="0"
tooltip="Close ⌘+W"
>
<span
class="icon"
@ -3061,6 +3100,9 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
close
</span>
</i>
<div>
Close ⌘+W
</div>
</div>
</div>
</div>
@ -3077,7 +3119,6 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
class="Icon new-dock-tab material interactive focusable"
id="menu-actions-for-dock"
tabindex="0"
tooltip="New tab"
>
<span
class="icon"
@ -3086,11 +3127,13 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
add
</span>
</i>
<div>
New tab
</div>
</div>
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Fit to window"
>
<span
class="icon"
@ -3099,10 +3142,12 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
fullscreen
</span>
</i>
<div>
Fit to window
</div>
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Open"
>
<span
class="icon"
@ -3111,6 +3156,9 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
keyboard_arrow_up
</span>
</i>
<div>
Open
</div>
</div>
</div>
</div>
@ -3632,7 +3680,6 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
<i
class="Icon material interactive focusable small"
tabindex="0"
tooltip="Close ⌘+W"
>
<span
class="icon"
@ -3641,6 +3688,9 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
close
</span>
</i>
<div>
Close ⌘+W
</div>
</div>
</div>
</div>
@ -3657,7 +3707,6 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
class="Icon new-dock-tab material interactive focusable"
id="menu-actions-for-dock"
tabindex="0"
tooltip="New tab"
>
<span
class="icon"
@ -3666,11 +3715,13 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
add
</span>
</i>
<div>
New tab
</div>
</div>
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Fit to window"
>
<span
class="icon"
@ -3679,10 +3730,12 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
fullscreen
</span>
</i>
<div>
Fit to window
</div>
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Open"
>
<span
class="icon"
@ -3691,6 +3744,9 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
keyboard_arrow_up
</span>
</i>
<div>
Open
</div>
</div>
</div>
</div>
@ -4172,7 +4228,6 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
<i
class="Icon material interactive focusable small"
tabindex="0"
tooltip="Close ⌘+W"
>
<span
class="icon"
@ -4181,6 +4236,9 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
close
</span>
</i>
<div>
Close ⌘+W
</div>
</div>
</div>
</div>
@ -4197,7 +4255,6 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
class="Icon new-dock-tab material interactive focusable"
id="menu-actions-for-dock"
tabindex="0"
tooltip="New tab"
>
<span
class="icon"
@ -4206,11 +4263,13 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
add
</span>
</i>
<div>
New tab
</div>
</div>
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Fit to window"
>
<span
class="icon"
@ -4219,10 +4278,12 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
fullscreen
</span>
</i>
<div>
Fit to window
</div>
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Open"
>
<span
class="icon"
@ -4231,6 +4292,9 @@ exports[`cluster - sidebar and tab navigation for extensions given extension wit
keyboard_arrow_up
</span>
</i>
<div>
Open
</div>
</div>
</div>
</div>

View File

@ -442,7 +442,6 @@ exports[`cluster - visibility of sidebar items given kube resource for route is
>
<i
class="Icon material interactive focusable small"
id="tooltip_target_13"
tabindex="0"
>
<span
@ -451,8 +450,10 @@ exports[`cluster - visibility of sidebar items given kube resource for route is
>
close
</span>
<div />
</i>
<div>
Close ⌘+W
</div>
</div>
</div>
</div>
@ -476,12 +477,13 @@ exports[`cluster - visibility of sidebar items given kube resource for route is
>
add
</span>
<div />
</i>
<div>
New tab
</div>
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_15"
tabindex="0"
>
<span
@ -490,11 +492,12 @@ exports[`cluster - visibility of sidebar items given kube resource for route is
>
fullscreen
</span>
<div />
</i>
<div>
Fit to window
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_16"
tabindex="0"
>
<span
@ -503,8 +506,10 @@ exports[`cluster - visibility of sidebar items given kube resource for route is
>
keyboard_arrow_up
</span>
<div />
</i>
<div>
Open
</div>
</div>
</div>
</div>
@ -999,7 +1004,6 @@ exports[`cluster - visibility of sidebar items given kube resource for route is
>
<i
class="Icon material interactive focusable small"
id="tooltip_target_49"
tabindex="0"
>
<span
@ -1008,8 +1012,10 @@ exports[`cluster - visibility of sidebar items given kube resource for route is
>
close
</span>
<div />
</i>
<div>
Close ⌘+W
</div>
</div>
</div>
</div>
@ -1033,12 +1039,13 @@ exports[`cluster - visibility of sidebar items given kube resource for route is
>
add
</span>
<div />
</i>
<div>
New tab
</div>
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_51"
tabindex="0"
>
<span
@ -1047,11 +1054,12 @@ exports[`cluster - visibility of sidebar items given kube resource for route is
>
fullscreen
</span>
<div />
</i>
<div>
Fit to window
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_52"
tabindex="0"
>
<span
@ -1060,8 +1068,10 @@ exports[`cluster - visibility of sidebar items given kube resource for route is
>
keyboard_arrow_up
</span>
<div />
</i>
<div>
Open
</div>
</div>
</div>
</div>

View File

@ -324,7 +324,6 @@ exports[`disable-cluster-pages-when-cluster-is-not-relevant given extension shou
>
<i
class="Icon material interactive focusable small"
id="tooltip_target_129"
tabindex="0"
>
<span
@ -333,8 +332,10 @@ exports[`disable-cluster-pages-when-cluster-is-not-relevant given extension shou
>
close
</span>
<div />
</i>
<div>
Close ⌘+W
</div>
</div>
</div>
</div>
@ -358,12 +359,13 @@ exports[`disable-cluster-pages-when-cluster-is-not-relevant given extension shou
>
add
</span>
<div />
</i>
<div>
New tab
</div>
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_131"
tabindex="0"
>
<span
@ -372,11 +374,12 @@ exports[`disable-cluster-pages-when-cluster-is-not-relevant given extension shou
>
fullscreen
</span>
<div />
</i>
<div>
Fit to window
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_132"
tabindex="0"
>
<span
@ -385,8 +388,10 @@ exports[`disable-cluster-pages-when-cluster-is-not-relevant given extension shou
>
keyboard_arrow_up
</span>
<div />
</i>
<div>
Open
</div>
</div>
</div>
</div>
@ -839,7 +844,6 @@ exports[`disable-cluster-pages-when-cluster-is-not-relevant given extension shou
>
<i
class="Icon material interactive focusable small"
id="tooltip_target_71"
tabindex="0"
>
<span
@ -848,8 +852,10 @@ exports[`disable-cluster-pages-when-cluster-is-not-relevant given extension shou
>
close
</span>
<div />
</i>
<div>
Close ⌘+W
</div>
</div>
</div>
</div>
@ -873,12 +879,13 @@ exports[`disable-cluster-pages-when-cluster-is-not-relevant given extension shou
>
add
</span>
<div />
</i>
<div>
New tab
</div>
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_73"
tabindex="0"
>
<span
@ -887,11 +894,12 @@ exports[`disable-cluster-pages-when-cluster-is-not-relevant given extension shou
>
fullscreen
</span>
<div />
</i>
<div>
Fit to window
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_74"
tabindex="0"
>
<span
@ -900,8 +908,10 @@ exports[`disable-cluster-pages-when-cluster-is-not-relevant given extension shou
>
keyboard_arrow_up
</span>
<div />
</i>
<div>
Open
</div>
</div>
</div>
</div>
@ -1354,7 +1364,6 @@ exports[`disable-cluster-pages-when-cluster-is-not-relevant given not yet known
>
<i
class="Icon material interactive focusable small"
id="tooltip_target_13"
tabindex="0"
>
<span
@ -1363,8 +1372,10 @@ exports[`disable-cluster-pages-when-cluster-is-not-relevant given not yet known
>
close
</span>
<div />
</i>
<div>
Close ⌘+W
</div>
</div>
</div>
</div>
@ -1388,12 +1399,13 @@ exports[`disable-cluster-pages-when-cluster-is-not-relevant given not yet known
>
add
</span>
<div />
</i>
<div>
New tab
</div>
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_15"
tabindex="0"
>
<span
@ -1402,11 +1414,12 @@ exports[`disable-cluster-pages-when-cluster-is-not-relevant given not yet known
>
fullscreen
</span>
<div />
</i>
<div>
Fit to window
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_16"
tabindex="0"
>
<span
@ -1415,8 +1428,10 @@ exports[`disable-cluster-pages-when-cluster-is-not-relevant given not yet known
>
keyboard_arrow_up
</span>
<div />
</i>
<div>
Open
</div>
</div>
</div>
</div>

View File

@ -463,7 +463,6 @@ exports[`disable sidebar items when cluster is not relevant given extension shou
>
<i
class="Icon material interactive focusable small"
id="tooltip_target_129"
tabindex="0"
>
<span
@ -472,8 +471,10 @@ exports[`disable sidebar items when cluster is not relevant given extension shou
>
close
</span>
<div />
</i>
<div>
Close ⌘+W
</div>
</div>
</div>
</div>
@ -497,12 +498,13 @@ exports[`disable sidebar items when cluster is not relevant given extension shou
>
add
</span>
<div />
</i>
<div>
New tab
</div>
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_131"
tabindex="0"
>
<span
@ -511,11 +513,12 @@ exports[`disable sidebar items when cluster is not relevant given extension shou
>
fullscreen
</span>
<div />
</i>
<div>
Fit to window
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_132"
tabindex="0"
>
<span
@ -524,8 +527,10 @@ exports[`disable sidebar items when cluster is not relevant given extension shou
>
keyboard_arrow_up
</span>
<div />
</i>
<div>
Open
</div>
</div>
</div>
</div>
@ -978,7 +983,6 @@ exports[`disable sidebar items when cluster is not relevant given extension shou
>
<i
class="Icon material interactive focusable small"
id="tooltip_target_71"
tabindex="0"
>
<span
@ -987,8 +991,10 @@ exports[`disable sidebar items when cluster is not relevant given extension shou
>
close
</span>
<div />
</i>
<div>
Close ⌘+W
</div>
</div>
</div>
</div>
@ -1012,12 +1018,13 @@ exports[`disable sidebar items when cluster is not relevant given extension shou
>
add
</span>
<div />
</i>
<div>
New tab
</div>
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_73"
tabindex="0"
>
<span
@ -1026,11 +1033,12 @@ exports[`disable sidebar items when cluster is not relevant given extension shou
>
fullscreen
</span>
<div />
</i>
<div>
Fit to window
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_74"
tabindex="0"
>
<span
@ -1039,8 +1047,10 @@ exports[`disable sidebar items when cluster is not relevant given extension shou
>
keyboard_arrow_up
</span>
<div />
</i>
<div>
Open
</div>
</div>
</div>
</div>
@ -1493,7 +1503,6 @@ exports[`disable sidebar items when cluster is not relevant given not yet known
>
<i
class="Icon material interactive focusable small"
id="tooltip_target_13"
tabindex="0"
>
<span
@ -1502,8 +1511,10 @@ exports[`disable sidebar items when cluster is not relevant given not yet known
>
close
</span>
<div />
</i>
<div>
Close ⌘+W
</div>
</div>
</div>
</div>
@ -1527,12 +1538,13 @@ exports[`disable sidebar items when cluster is not relevant given not yet known
>
add
</span>
<div />
</i>
<div>
New tab
</div>
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_15"
tabindex="0"
>
<span
@ -1541,11 +1553,12 @@ exports[`disable sidebar items when cluster is not relevant given not yet known
>
fullscreen
</span>
<div />
</i>
<div>
Fit to window
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_16"
tabindex="0"
>
<span
@ -1554,8 +1567,10 @@ exports[`disable sidebar items when cluster is not relevant given not yet known
>
keyboard_arrow_up
</span>
<div />
</i>
<div>
Open
</div>
</div>
</div>
</div>

View File

@ -281,7 +281,6 @@ exports[`disable kube object detail items when cluster is not relevant given ext
some-kind: some-name
<i
class="Icon material interactive focusable"
id="tooltip_target_161"
tabindex="0"
>
<span
@ -290,8 +289,10 @@ exports[`disable kube object detail items when cluster is not relevant given ext
>
content_copy
</span>
<div />
</i>
<div>
Copy
</div>
</div>
<ul
class="Menu MenuActions flex KubeObjectMenu toolbar gaps right bottom"
@ -299,7 +300,6 @@ exports[`disable kube object detail items when cluster is not relevant given ext
/>
<i
class="Icon material interactive focusable"
id="tooltip_target_162"
tabindex="0"
>
<span
@ -308,8 +308,10 @@ exports[`disable kube object detail items when cluster is not relevant given ext
>
close
</span>
<div />
</i>
<div>
Close
</div>
</div>
<div
class="drawer-content flex column box grow"
@ -379,7 +381,6 @@ exports[`disable kube object detail items when cluster is not relevant given ext
>
<i
class="Icon material interactive focusable small"
id="tooltip_target_153"
tabindex="0"
>
<span
@ -388,8 +389,10 @@ exports[`disable kube object detail items when cluster is not relevant given ext
>
close
</span>
<div />
</i>
<div>
Close ⌘+W
</div>
</div>
</div>
</div>
@ -413,12 +416,13 @@ exports[`disable kube object detail items when cluster is not relevant given ext
>
add
</span>
<div />
</i>
<div>
New tab
</div>
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_155"
tabindex="0"
>
<span
@ -427,11 +431,12 @@ exports[`disable kube object detail items when cluster is not relevant given ext
>
fullscreen
</span>
<div />
</i>
<div>
Fit to window
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_156"
tabindex="0"
>
<span
@ -440,8 +445,10 @@ exports[`disable kube object detail items when cluster is not relevant given ext
>
keyboard_arrow_up
</span>
<div />
</i>
<div>
Open
</div>
</div>
</div>
</div>
@ -732,7 +739,6 @@ exports[`disable kube object detail items when cluster is not relevant given ext
some-kind: some-name
<i
class="Icon material interactive focusable"
id="tooltip_target_91"
tabindex="0"
>
<span
@ -741,8 +747,10 @@ exports[`disable kube object detail items when cluster is not relevant given ext
>
content_copy
</span>
<div />
</i>
<div>
Copy
</div>
</div>
<ul
class="Menu MenuActions flex KubeObjectMenu toolbar gaps right bottom"
@ -750,7 +758,6 @@ exports[`disable kube object detail items when cluster is not relevant given ext
/>
<i
class="Icon material interactive focusable"
id="tooltip_target_92"
tabindex="0"
>
<span
@ -759,8 +766,10 @@ exports[`disable kube object detail items when cluster is not relevant given ext
>
close
</span>
<div />
</i>
<div>
Close
</div>
</div>
<div
class="drawer-content flex column box grow"
@ -868,7 +877,6 @@ exports[`disable kube object detail items when cluster is not relevant given ext
>
<i
class="Icon material interactive focusable small"
id="tooltip_target_83"
tabindex="0"
>
<span
@ -877,8 +885,10 @@ exports[`disable kube object detail items when cluster is not relevant given ext
>
close
</span>
<div />
</i>
<div>
Close ⌘+W
</div>
</div>
</div>
</div>
@ -902,12 +912,13 @@ exports[`disable kube object detail items when cluster is not relevant given ext
>
add
</span>
<div />
</i>
<div>
New tab
</div>
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_85"
tabindex="0"
>
<span
@ -916,11 +927,12 @@ exports[`disable kube object detail items when cluster is not relevant given ext
>
fullscreen
</span>
<div />
</i>
<div>
Fit to window
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_86"
tabindex="0"
>
<span
@ -929,8 +941,10 @@ exports[`disable kube object detail items when cluster is not relevant given ext
>
keyboard_arrow_up
</span>
<div />
</i>
<div>
Open
</div>
</div>
</div>
</div>
@ -1221,7 +1235,6 @@ exports[`disable kube object detail items when cluster is not relevant given not
some-kind: some-name
<i
class="Icon material interactive focusable"
id="tooltip_target_21"
tabindex="0"
>
<span
@ -1230,8 +1243,10 @@ exports[`disable kube object detail items when cluster is not relevant given not
>
content_copy
</span>
<div />
</i>
<div>
Copy
</div>
</div>
<ul
class="Menu MenuActions flex KubeObjectMenu toolbar gaps right bottom"
@ -1239,7 +1254,6 @@ exports[`disable kube object detail items when cluster is not relevant given not
/>
<i
class="Icon material interactive focusable"
id="tooltip_target_22"
tabindex="0"
>
<span
@ -1248,8 +1262,10 @@ exports[`disable kube object detail items when cluster is not relevant given not
>
close
</span>
<div />
</i>
<div>
Close
</div>
</div>
<div
class="drawer-content flex column box grow"
@ -1357,7 +1373,6 @@ exports[`disable kube object detail items when cluster is not relevant given not
>
<i
class="Icon material interactive focusable small"
id="tooltip_target_13"
tabindex="0"
>
<span
@ -1366,8 +1381,10 @@ exports[`disable kube object detail items when cluster is not relevant given not
>
close
</span>
<div />
</i>
<div>
Close ⌘+W
</div>
</div>
</div>
</div>
@ -1391,12 +1408,13 @@ exports[`disable kube object detail items when cluster is not relevant given not
>
add
</span>
<div />
</i>
<div>
New tab
</div>
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_15"
tabindex="0"
>
<span
@ -1405,11 +1423,12 @@ exports[`disable kube object detail items when cluster is not relevant given not
>
fullscreen
</span>
<div />
</i>
<div>
Fit to window
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_16"
tabindex="0"
>
<span
@ -1418,8 +1437,10 @@ exports[`disable kube object detail items when cluster is not relevant given not
>
keyboard_arrow_up
</span>
<div />
</i>
<div>
Open
</div>
</div>
</div>
</div>

View File

@ -329,7 +329,6 @@ exports[`disable kube object menu items when cluster is not relevant given exten
>
<i
class="Icon material interactive focusable small"
id="tooltip_target_137"
tabindex="0"
>
<span
@ -338,8 +337,10 @@ exports[`disable kube object menu items when cluster is not relevant given exten
>
close
</span>
<div />
</i>
<div>
Close ⌘+W
</div>
</div>
</div>
</div>
@ -363,12 +364,13 @@ exports[`disable kube object menu items when cluster is not relevant given exten
>
add
</span>
<div />
</i>
<div>
New tab
</div>
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_139"
tabindex="0"
>
<span
@ -377,11 +379,12 @@ exports[`disable kube object menu items when cluster is not relevant given exten
>
fullscreen
</span>
<div />
</i>
<div>
Fit to window
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_140"
tabindex="0"
>
<span
@ -390,8 +393,10 @@ exports[`disable kube object menu items when cluster is not relevant given exten
>
keyboard_arrow_up
</span>
<div />
</i>
<div>
Open
</div>
</div>
</div>
</div>
@ -724,7 +729,6 @@ exports[`disable kube object menu items when cluster is not relevant given exten
>
<i
class="Icon material interactive focusable small"
id="tooltip_target_75"
tabindex="0"
>
<span
@ -733,8 +737,10 @@ exports[`disable kube object menu items when cluster is not relevant given exten
>
close
</span>
<div />
</i>
<div>
Close ⌘+W
</div>
</div>
</div>
</div>
@ -758,12 +764,13 @@ exports[`disable kube object menu items when cluster is not relevant given exten
>
add
</span>
<div />
</i>
<div>
New tab
</div>
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_77"
tabindex="0"
>
<span
@ -772,11 +779,12 @@ exports[`disable kube object menu items when cluster is not relevant given exten
>
fullscreen
</span>
<div />
</i>
<div>
Fit to window
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_78"
tabindex="0"
>
<span
@ -785,8 +793,10 @@ exports[`disable kube object menu items when cluster is not relevant given exten
>
keyboard_arrow_up
</span>
<div />
</i>
<div>
Open
</div>
</div>
</div>
</div>
@ -1119,7 +1129,6 @@ exports[`disable kube object menu items when cluster is not relevant given not y
>
<i
class="Icon material interactive focusable small"
id="tooltip_target_13"
tabindex="0"
>
<span
@ -1128,8 +1137,10 @@ exports[`disable kube object menu items when cluster is not relevant given not y
>
close
</span>
<div />
</i>
<div>
Close ⌘+W
</div>
</div>
</div>
</div>
@ -1153,12 +1164,13 @@ exports[`disable kube object menu items when cluster is not relevant given not y
>
add
</span>
<div />
</i>
<div>
New tab
</div>
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_15"
tabindex="0"
>
<span
@ -1167,11 +1179,12 @@ exports[`disable kube object menu items when cluster is not relevant given not y
>
fullscreen
</span>
<div />
</i>
<div>
Fit to window
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_16"
tabindex="0"
>
<span
@ -1180,8 +1193,10 @@ exports[`disable kube object menu items when cluster is not relevant given not y
>
keyboard_arrow_up
</span>
<div />
</i>
<div>
Open
</div>
</div>
</div>
</div>

View File

@ -319,7 +319,6 @@ exports[`show status for a kube object given application starts and in test page
<i
class="Icon material interactive focusable small"
tabindex="0"
tooltip="Close ⌘+W"
>
<span
class="icon"
@ -347,7 +346,6 @@ exports[`show status for a kube object given application starts and in test page
class="Icon new-dock-tab material interactive focusable"
id="menu-actions-for-dock"
tabindex="0"
tooltip="New tab"
>
<span
class="icon"
@ -363,7 +361,6 @@ exports[`show status for a kube object given application starts and in test page
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Fit to window"
>
<span
class="icon"
@ -378,7 +375,6 @@ exports[`show status for a kube object given application starts and in test page
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Open"
>
<span
class="icon"
@ -758,7 +754,6 @@ exports[`show status for a kube object given application starts and in test page
<i
class="Icon material interactive focusable small"
tabindex="0"
tooltip="Close ⌘+W"
>
<span
class="icon"
@ -786,7 +781,6 @@ exports[`show status for a kube object given application starts and in test page
class="Icon new-dock-tab material interactive focusable"
id="menu-actions-for-dock"
tabindex="0"
tooltip="New tab"
>
<span
class="icon"
@ -802,7 +796,6 @@ exports[`show status for a kube object given application starts and in test page
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Fit to window"
>
<span
class="icon"
@ -817,7 +810,6 @@ exports[`show status for a kube object given application starts and in test page
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Open"
>
<span
class="icon"
@ -1197,7 +1189,6 @@ exports[`show status for a kube object given application starts and in test page
<i
class="Icon material interactive focusable small"
tabindex="0"
tooltip="Close ⌘+W"
>
<span
class="icon"
@ -1225,7 +1216,6 @@ exports[`show status for a kube object given application starts and in test page
class="Icon new-dock-tab material interactive focusable"
id="menu-actions-for-dock"
tabindex="0"
tooltip="New tab"
>
<span
class="icon"
@ -1241,7 +1231,6 @@ exports[`show status for a kube object given application starts and in test page
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Fit to window"
>
<span
class="icon"
@ -1256,7 +1245,6 @@ exports[`show status for a kube object given application starts and in test page
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Open"
>
<span
class="icon"
@ -1596,7 +1584,6 @@ exports[`show status for a kube object given application starts and in test page
<i
class="Icon material interactive focusable small"
tabindex="0"
tooltip="Close ⌘+W"
>
<span
class="icon"
@ -1624,7 +1611,6 @@ exports[`show status for a kube object given application starts and in test page
class="Icon new-dock-tab material interactive focusable"
id="menu-actions-for-dock"
tabindex="0"
tooltip="New tab"
>
<span
class="icon"
@ -1640,7 +1626,6 @@ exports[`show status for a kube object given application starts and in test page
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Fit to window"
>
<span
class="icon"
@ -1655,7 +1640,6 @@ exports[`show status for a kube object given application starts and in test page
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Open"
>
<span
class="icon"
@ -1995,7 +1979,6 @@ exports[`show status for a kube object given application starts and in test page
<i
class="Icon material interactive focusable small"
tabindex="0"
tooltip="Close ⌘+W"
>
<span
class="icon"
@ -2023,7 +2006,6 @@ exports[`show status for a kube object given application starts and in test page
class="Icon new-dock-tab material interactive focusable"
id="menu-actions-for-dock"
tabindex="0"
tooltip="New tab"
>
<span
class="icon"
@ -2039,7 +2021,6 @@ exports[`show status for a kube object given application starts and in test page
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Fit to window"
>
<span
class="icon"
@ -2054,7 +2035,6 @@ exports[`show status for a kube object given application starts and in test page
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Open"
>
<span
class="icon"
@ -2434,7 +2414,6 @@ exports[`show status for a kube object given application starts and in test page
<i
class="Icon material interactive focusable small"
tabindex="0"
tooltip="Close ⌘+W"
>
<span
class="icon"
@ -2462,7 +2441,6 @@ exports[`show status for a kube object given application starts and in test page
class="Icon new-dock-tab material interactive focusable"
id="menu-actions-for-dock"
tabindex="0"
tooltip="New tab"
>
<span
class="icon"
@ -2478,7 +2456,6 @@ exports[`show status for a kube object given application starts and in test page
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Fit to window"
>
<span
class="icon"
@ -2493,7 +2470,6 @@ exports[`show status for a kube object given application starts and in test page
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Open"
>
<span
class="icon"

View File

@ -268,7 +268,6 @@ exports[`disable kube object statuses when cluster is not relevant given extensi
<i
class="Icon KubeObjectStatusIcon error material focusable"
data-testid="kube-object-status-icon-for-some-uid"
id="tooltip_target_156"
>
<span
class="icon"
@ -276,8 +275,35 @@ exports[`disable kube object statuses when cluster is not relevant given extensi
>
error
</span>
<div />
</i>
<div
data-testid="tooltip-content-for-kube-object-status-icon-for-some-uid"
>
<div
class="KubeObjectStatusTooltip"
>
<div
class="level error"
>
<span
class="title"
>
Critical
</span>
<div
class="status msg"
>
- some-kube-object-status-text
<span
class="age"
>
.
</span>
</div>
</div>
</div>
</div>
</div>
<div
class="footer"
@ -332,7 +358,6 @@ exports[`disable kube object statuses when cluster is not relevant given extensi
>
<i
class="Icon material interactive focusable small"
id="tooltip_target_137"
tabindex="0"
>
<span
@ -341,8 +366,10 @@ exports[`disable kube object statuses when cluster is not relevant given extensi
>
close
</span>
<div />
</i>
<div>
Close ⌘+W
</div>
</div>
</div>
</div>
@ -366,12 +393,13 @@ exports[`disable kube object statuses when cluster is not relevant given extensi
>
add
</span>
<div />
</i>
<div>
New tab
</div>
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_139"
tabindex="0"
>
<span
@ -380,11 +408,12 @@ exports[`disable kube object statuses when cluster is not relevant given extensi
>
fullscreen
</span>
<div />
</i>
<div>
Fit to window
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_140"
tabindex="0"
>
<span
@ -393,8 +422,10 @@ exports[`disable kube object statuses when cluster is not relevant given extensi
>
keyboard_arrow_up
</span>
<div />
</i>
<div>
Open
</div>
</div>
</div>
</div>
@ -722,7 +753,6 @@ exports[`disable kube object statuses when cluster is not relevant given extensi
>
<i
class="Icon material interactive focusable small"
id="tooltip_target_75"
tabindex="0"
>
<span
@ -731,8 +761,10 @@ exports[`disable kube object statuses when cluster is not relevant given extensi
>
close
</span>
<div />
</i>
<div>
Close ⌘+W
</div>
</div>
</div>
</div>
@ -756,12 +788,13 @@ exports[`disable kube object statuses when cluster is not relevant given extensi
>
add
</span>
<div />
</i>
<div>
New tab
</div>
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_77"
tabindex="0"
>
<span
@ -770,11 +803,12 @@ exports[`disable kube object statuses when cluster is not relevant given extensi
>
fullscreen
</span>
<div />
</i>
<div>
Fit to window
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_78"
tabindex="0"
>
<span
@ -783,8 +817,10 @@ exports[`disable kube object statuses when cluster is not relevant given extensi
>
keyboard_arrow_up
</span>
<div />
</i>
<div>
Open
</div>
</div>
</div>
</div>
@ -1112,7 +1148,6 @@ exports[`disable kube object statuses when cluster is not relevant given not yet
>
<i
class="Icon material interactive focusable small"
id="tooltip_target_13"
tabindex="0"
>
<span
@ -1121,8 +1156,10 @@ exports[`disable kube object statuses when cluster is not relevant given not yet
>
close
</span>
<div />
</i>
<div>
Close ⌘+W
</div>
</div>
</div>
</div>
@ -1146,12 +1183,13 @@ exports[`disable kube object statuses when cluster is not relevant given not yet
>
add
</span>
<div />
</i>
<div>
New tab
</div>
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_15"
tabindex="0"
>
<span
@ -1160,11 +1198,12 @@ exports[`disable kube object statuses when cluster is not relevant given not yet
>
fullscreen
</span>
<div />
</i>
<div>
Fit to window
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_16"
tabindex="0"
>
<span
@ -1173,8 +1212,10 @@ exports[`disable kube object statuses when cluster is not relevant given not yet
>
keyboard_arrow_up
</span>
<div />
</i>
<div>
Open
</div>
</div>
</div>
</div>

View File

@ -21,31 +21,6 @@ import { observer } from "mobx-react";
import { kubeObjectStatusTextInjectionToken } from "../../../renderer/components/kube-object-status-icon/kube-object-status-text-injection-token";
import { KubeObjectStatusIcon } from "../../../renderer/components/kube-object-status-icon";
// TODO: Make tooltips free of side effects by making it deterministic
jest.mock("../../../renderer/components/tooltip/withTooltip", () => ({
withTooltip:
(Target: any) =>
({ tooltip, ...props }: any) => {
if (tooltip) {
const testId = props["data-testid"];
return (
<>
<Target
tooltip={tooltip.children ? undefined : tooltip}
{...props}
/>
<div data-testid={testId && `tooltip-content-for-${testId}`}>
{tooltip.children || tooltip}
</div>
</>
);
}
return <Target {...props} />;
},
}));
describe("show status for a kube object", () => {
let builder: ApplicationBuilder;
let infoStatusIsShown: boolean;

View File

@ -489,7 +489,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
>
<button
class="Button add-button primary big round"
tooltip="Add Namespace"
type="button"
>
<i
@ -566,7 +565,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
<i
class="Icon material interactive focusable small"
tabindex="0"
tooltip="Close ⌘+W"
>
<span
class="icon"
@ -594,7 +592,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
class="Icon new-dock-tab material interactive focusable"
id="menu-actions-for-dock"
tabindex="0"
tooltip="New tab"
>
<span
class="icon"
@ -610,7 +607,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Fit to window"
>
<span
class="icon"
@ -625,7 +621,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Minimize"
>
<span
class="icon"
@ -1145,7 +1140,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
>
<button
class="Button add-button primary big round"
tooltip="Add Namespace"
type="button"
>
<i
@ -1222,7 +1216,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
<i
class="Icon material interactive focusable small"
tabindex="0"
tooltip="Close ⌘+W"
>
<span
class="icon"
@ -1250,7 +1243,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
class="Icon new-dock-tab material interactive focusable"
id="menu-actions-for-dock"
tabindex="0"
tooltip="New tab"
>
<span
class="icon"
@ -1266,7 +1258,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Fit to window"
>
<span
class="icon"
@ -1281,7 +1272,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Minimize"
>
<span
class="icon"
@ -1806,7 +1796,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
>
<button
class="Button add-button primary big round"
tooltip="Add Namespace"
type="button"
>
<i
@ -1883,7 +1872,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
<i
class="Icon material interactive focusable small"
tabindex="0"
tooltip="Close ⌘+W"
>
<span
class="icon"
@ -1911,7 +1899,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
class="Icon new-dock-tab material interactive focusable"
id="menu-actions-for-dock"
tabindex="0"
tooltip="New tab"
>
<span
class="icon"
@ -1927,7 +1914,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Fit to window"
>
<span
class="icon"
@ -1942,7 +1928,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Minimize"
>
<span
class="icon"
@ -2536,7 +2521,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
>
<button
class="Button add-button primary big round"
tooltip="Add Namespace"
type="button"
>
<i
@ -2613,7 +2597,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
<i
class="Icon material interactive focusable small"
tabindex="0"
tooltip="Close ⌘+W"
>
<span
class="icon"
@ -2663,7 +2646,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
<i
class="Icon material interactive focusable small"
tabindex="0"
tooltip="Close ⌘+W"
>
<span
class="icon"
@ -2691,7 +2673,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
class="Icon new-dock-tab material interactive focusable"
id="menu-actions-for-dock"
tabindex="0"
tooltip="New tab"
>
<span
class="icon"
@ -2707,7 +2688,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Fit to window"
>
<span
class="icon"
@ -2722,7 +2702,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Minimize"
>
<span
class="icon"
@ -3242,7 +3221,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
>
<button
class="Button add-button primary big round"
tooltip="Add Namespace"
type="button"
>
<i
@ -3319,7 +3297,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
<i
class="Icon material interactive focusable small"
tabindex="0"
tooltip="Close ⌘+W"
>
<span
class="icon"
@ -3369,7 +3346,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
<i
class="Icon material interactive focusable small"
tabindex="0"
tooltip="Close ⌘+W"
>
<span
class="icon"
@ -3397,7 +3373,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
class="Icon new-dock-tab material interactive focusable"
id="menu-actions-for-dock"
tabindex="0"
tooltip="New tab"
>
<span
class="icon"
@ -3413,7 +3388,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Fit to window"
>
<span
class="icon"
@ -3428,7 +3402,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Minimize"
>
<span
class="icon"
@ -4020,7 +3993,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
>
<button
class="Button add-button primary big round"
tooltip="Add Namespace"
type="button"
>
<i
@ -4097,7 +4069,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
<i
class="Icon material interactive focusable small"
tabindex="0"
tooltip="Close ⌘+W"
>
<span
class="icon"
@ -4147,7 +4118,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
<i
class="Icon material interactive focusable small"
tabindex="0"
tooltip="Close ⌘+W"
>
<span
class="icon"
@ -4175,7 +4145,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
class="Icon new-dock-tab material interactive focusable"
id="menu-actions-for-dock"
tabindex="0"
tooltip="New tab"
>
<span
class="icon"
@ -4191,7 +4160,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Fit to window"
>
<span
class="icon"
@ -4206,7 +4174,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Minimize"
>
<span
class="icon"
@ -4800,7 +4767,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
>
<button
class="Button add-button primary big round"
tooltip="Add Namespace"
type="button"
>
<i
@ -4877,7 +4843,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
<i
class="Icon material interactive focusable small"
tabindex="0"
tooltip="Close ⌘+W"
>
<span
class="icon"
@ -4905,7 +4870,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
class="Icon new-dock-tab material interactive focusable"
id="menu-actions-for-dock"
tabindex="0"
tooltip="New tab"
>
<span
class="icon"
@ -4921,7 +4885,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Fit to window"
>
<span
class="icon"
@ -4936,7 +4899,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Minimize"
>
<span
class="icon"
@ -5001,10 +4963,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
>
<i
class="Icon material focusable"
tooltip="YAMLException: end of the stream or a document separator is expected (1:1)
1 | @some-invalid-configuration@
-----^"
>
<span
class="icon"
@ -5548,7 +5506,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
>
<button
class="Button add-button primary big round"
tooltip="Add Namespace"
type="button"
>
<i
@ -5625,7 +5582,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
<i
class="Icon material interactive focusable small"
tabindex="0"
tooltip="Close ⌘+W"
>
<span
class="icon"
@ -5653,7 +5609,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
class="Icon new-dock-tab material interactive focusable"
id="menu-actions-for-dock"
tabindex="0"
tooltip="New tab"
>
<span
class="icon"
@ -5669,7 +5624,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Fit to window"
>
<span
class="icon"
@ -5684,7 +5638,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Minimize"
>
<span
class="icon"
@ -6287,7 +6240,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
>
<button
class="Button add-button primary big round"
tooltip="Add Namespace"
type="button"
>
<i
@ -6364,7 +6316,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
<i
class="Icon material interactive focusable small"
tabindex="0"
tooltip="Close ⌘+W"
>
<span
class="icon"
@ -6392,7 +6343,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
class="Icon new-dock-tab material interactive focusable"
id="menu-actions-for-dock"
tabindex="0"
tooltip="New tab"
>
<span
class="icon"
@ -6408,7 +6358,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Fit to window"
>
<span
class="icon"
@ -6423,7 +6372,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Minimize"
>
<span
class="icon"
@ -7017,7 +6965,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
>
<button
class="Button add-button primary big round"
tooltip="Add Namespace"
type="button"
>
<i
@ -7094,7 +7041,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
<i
class="Icon material interactive focusable small"
tabindex="0"
tooltip="Close ⌘+W"
>
<span
class="icon"
@ -7122,7 +7068,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
class="Icon new-dock-tab material interactive focusable"
id="menu-actions-for-dock"
tabindex="0"
tooltip="New tab"
>
<span
class="icon"
@ -7138,7 +7083,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Fit to window"
>
<span
class="icon"
@ -7153,7 +7097,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Minimize"
>
<span
class="icon"
@ -7747,7 +7690,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
>
<button
class="Button add-button primary big round"
tooltip="Add Namespace"
type="button"
>
<i
@ -7824,7 +7766,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
<i
class="Icon material interactive focusable small"
tabindex="0"
tooltip="Close ⌘+W"
>
<span
class="icon"
@ -7852,7 +7793,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
class="Icon new-dock-tab material interactive focusable"
id="menu-actions-for-dock"
tabindex="0"
tooltip="New tab"
>
<span
class="icon"
@ -7868,7 +7808,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Fit to window"
>
<span
class="icon"
@ -7883,7 +7822,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Minimize"
>
<span
class="icon"
@ -8477,7 +8415,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
>
<button
class="Button add-button primary big round"
tooltip="Add Namespace"
type="button"
>
<i
@ -8531,7 +8468,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
class="Icon new-dock-tab material interactive focusable"
id="menu-actions-for-dock"
tabindex="0"
tooltip="New tab"
>
<span
class="icon"
@ -9042,7 +8978,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
>
<button
class="Button add-button primary big round"
tooltip="Add Namespace"
type="button"
>
<i
@ -9119,7 +9054,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
<i
class="Icon material interactive focusable small"
tabindex="0"
tooltip="Close ⌘+W"
>
<span
class="icon"
@ -9147,7 +9081,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
class="Icon new-dock-tab material interactive focusable"
id="menu-actions-for-dock"
tabindex="0"
tooltip="New tab"
>
<span
class="icon"
@ -9163,7 +9096,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Fit to window"
>
<span
class="icon"
@ -9178,7 +9110,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Minimize"
>
<span
class="icon"
@ -9781,7 +9712,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
>
<button
class="Button add-button primary big round"
tooltip="Add Namespace"
type="button"
>
<i
@ -9835,7 +9765,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
class="Icon new-dock-tab material interactive focusable"
id="menu-actions-for-dock"
tabindex="0"
tooltip="New tab"
>
<span
class="icon"
@ -10346,7 +10275,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
>
<button
class="Button add-button primary big round"
tooltip="Add Namespace"
type="button"
>
<i
@ -10400,7 +10328,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
class="Icon new-dock-tab material interactive focusable"
id="menu-actions-for-dock"
tabindex="0"
tooltip="New tab"
>
<span
class="icon"
@ -10911,7 +10838,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
>
<button
class="Button add-button primary big round"
tooltip="Add Namespace"
type="button"
>
<i
@ -10988,7 +10914,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
<i
class="Icon material interactive focusable small"
tabindex="0"
tooltip="Close ⌘+W"
>
<span
class="icon"
@ -11016,7 +10941,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
class="Icon new-dock-tab material interactive focusable"
id="menu-actions-for-dock"
tabindex="0"
tooltip="New tab"
>
<span
class="icon"
@ -11032,7 +10956,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Fit to window"
>
<span
class="icon"
@ -11047,7 +10970,6 @@ exports[`cluster/namespaces - edit namespace from new tab when navigating to nam
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Minimize"
>
<span
class="icon"

View File

@ -471,7 +471,6 @@ exports[`cluster/namespaces - edit namespaces from previously opened tab given t
<i
class="Icon material interactive focusable small"
tabindex="0"
tooltip="Close ⌘+W"
>
<span
class="icon"
@ -499,7 +498,6 @@ exports[`cluster/namespaces - edit namespaces from previously opened tab given t
class="Icon new-dock-tab material interactive focusable"
id="menu-actions-for-dock"
tabindex="0"
tooltip="New tab"
>
<span
class="icon"
@ -515,7 +513,6 @@ exports[`cluster/namespaces - edit namespaces from previously opened tab given t
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Fit to window"
>
<span
class="icon"
@ -530,7 +527,6 @@ exports[`cluster/namespaces - edit namespaces from previously opened tab given t
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Minimize"
>
<span
class="icon"
@ -1032,7 +1028,6 @@ exports[`cluster/namespaces - edit namespaces from previously opened tab given t
<i
class="Icon material interactive focusable small"
tabindex="0"
tooltip="Close ⌘+W"
>
<span
class="icon"
@ -1060,7 +1055,6 @@ exports[`cluster/namespaces - edit namespaces from previously opened tab given t
class="Icon new-dock-tab material interactive focusable"
id="menu-actions-for-dock"
tabindex="0"
tooltip="New tab"
>
<span
class="icon"
@ -1076,7 +1070,6 @@ exports[`cluster/namespaces - edit namespaces from previously opened tab given t
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Fit to window"
>
<span
class="icon"
@ -1091,7 +1084,6 @@ exports[`cluster/namespaces - edit namespaces from previously opened tab given t
<i
class="Icon material interactive focusable"
tabindex="0"
tooltip="Minimize"
>
<span
class="icon"

View File

@ -8,7 +8,6 @@ import { fireEvent } from "@testing-library/react";
import type { ApplicationBuilder } from "../../../renderer/components/test-utils/get-application-builder";
import { getApplicationBuilder } from "../../../renderer/components/test-utils/get-application-builder";
import navigateToNamespacesInjectable from "../../../common/front-end-routing/routes/cluster/namespaces/navigate-to-namespaces.injectable";
import React from "react";
import createEditResourceTabInjectable from "../../../renderer/components/dock/edit-resource/edit-resource-tab.injectable";
import getRandomIdForEditResourceTabInjectable from "../../../renderer/components/dock/edit-resource/get-random-id-for-edit-resource-tab.injectable";
import type { AsyncFnMock } from "@async-fn/jest";
@ -26,30 +25,6 @@ import directoryForLensLocalStorageInjectable from "../../../common/directory-fo
import hostedClusterIdInjectable from "../../../renderer/cluster-frame-context/hosted-cluster-id.injectable";
import { controlWhenStoragesAreReady } from "../../../renderer/utils/create-storage/storages-are-ready";
jest.mock("../../../renderer/components/tooltip/withTooltip", () => ({
withTooltip:
(Target: any) =>
({ tooltip, ...props }: any) => {
if (tooltip) {
const testId = props["data-testid"];
return (
<>
<Target
tooltip={tooltip.children ? undefined : tooltip}
{...props}
/>
<div data-testid={testId && `tooltip-content-for-${testId}`}>
{tooltip.children || tooltip}
</div>
</>
);
}
return <Target {...props} />;
},
}));
describe("cluster/namespaces - edit namespace from new tab", () => {
let builder: ApplicationBuilder;
let callForNamespaceMock: AsyncFnMock<CallForResource>;

View File

@ -6,7 +6,6 @@ import type { RenderResult } from "@testing-library/react";
import { act } from "@testing-library/react";
import type { ApplicationBuilder } from "../../../renderer/components/test-utils/get-application-builder";
import { getApplicationBuilder } from "../../../renderer/components/test-utils/get-application-builder";
import React from "react";
import type { AsyncFnMock } from "@async-fn/jest";
import asyncFn from "@async-fn/jest";
import type { CallForResource } from "../../../renderer/components/dock/edit-resource/edit-resource-model/call-for-resource/call-for-resource.injectable";
@ -18,30 +17,6 @@ import writeJsonFileInjectable from "../../../common/fs/write-json-file.injectab
import { TabKind } from "../../../renderer/components/dock/dock/store";
import { Namespace } from "../../../common/k8s-api/endpoints";
jest.mock("../../../renderer/components/tooltip/withTooltip", () => ({
withTooltip:
(Target: any) =>
({ tooltip, ...props }: any) => {
if (tooltip) {
const testId = props["data-testid"];
return (
<>
<Target
tooltip={tooltip.children ? undefined : tooltip}
{...props}
/>
<div data-testid={testId && `tooltip-content-for-${testId}`}>
{tooltip.children || tooltip}
</div>
</>
);
}
return <Target {...props} />;
},
}));
describe("cluster/namespaces - edit namespaces from previously opened tab", () => {
let builder: ApplicationBuilder;
let callForNamespaceMock: AsyncFnMock<CallForResource>;

View File

@ -23,11 +23,6 @@ import type { IObservableValue } from "mobx";
import { runInAction, computed, observable } from "mobx";
import storageSaveDelayInjectable from "../../renderer/utils/create-storage/storage-save-delay.injectable";
// TODO: Make tooltips free of side effects by making it deterministic
jest.mock("../../renderer/components/tooltip/withTooltip", () => ({
withTooltip: (target: any) => target,
}));
describe("cluster - sidebar and tab navigation for extensions", () => {
let applicationBuilder: ApplicationBuilder;
let rendererDi: DiContainer;

View File

@ -448,7 +448,6 @@ exports[`disable workloads overview details when cluster is not relevant given e
>
<i
class="Icon material interactive focusable small"
id="tooltip_target_129"
tabindex="0"
>
<span
@ -457,8 +456,10 @@ exports[`disable workloads overview details when cluster is not relevant given e
>
close
</span>
<div />
</i>
<div>
Close ⌘+W
</div>
</div>
</div>
</div>
@ -482,12 +483,13 @@ exports[`disable workloads overview details when cluster is not relevant given e
>
add
</span>
<div />
</i>
<div>
New tab
</div>
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_131"
tabindex="0"
>
<span
@ -496,11 +498,12 @@ exports[`disable workloads overview details when cluster is not relevant given e
>
fullscreen
</span>
<div />
</i>
<div>
Fit to window
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_132"
tabindex="0"
>
<span
@ -509,8 +512,10 @@ exports[`disable workloads overview details when cluster is not relevant given e
>
keyboard_arrow_up
</span>
<div />
</i>
<div>
Open
</div>
</div>
</div>
</div>
@ -963,7 +968,6 @@ exports[`disable workloads overview details when cluster is not relevant given e
>
<i
class="Icon material interactive focusable small"
id="tooltip_target_71"
tabindex="0"
>
<span
@ -972,8 +976,10 @@ exports[`disable workloads overview details when cluster is not relevant given e
>
close
</span>
<div />
</i>
<div>
Close ⌘+W
</div>
</div>
</div>
</div>
@ -997,12 +1003,13 @@ exports[`disable workloads overview details when cluster is not relevant given e
>
add
</span>
<div />
</i>
<div>
New tab
</div>
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_73"
tabindex="0"
>
<span
@ -1011,11 +1018,12 @@ exports[`disable workloads overview details when cluster is not relevant given e
>
fullscreen
</span>
<div />
</i>
<div>
Fit to window
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_74"
tabindex="0"
>
<span
@ -1024,8 +1032,10 @@ exports[`disable workloads overview details when cluster is not relevant given e
>
keyboard_arrow_up
</span>
<div />
</i>
<div>
Open
</div>
</div>
</div>
</div>
@ -1478,7 +1488,6 @@ exports[`disable workloads overview details when cluster is not relevant given n
>
<i
class="Icon material interactive focusable small"
id="tooltip_target_13"
tabindex="0"
>
<span
@ -1487,8 +1496,10 @@ exports[`disable workloads overview details when cluster is not relevant given n
>
close
</span>
<div />
</i>
<div>
Close ⌘+W
</div>
</div>
</div>
</div>
@ -1512,12 +1523,13 @@ exports[`disable workloads overview details when cluster is not relevant given n
>
add
</span>
<div />
</i>
<div>
New tab
</div>
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_15"
tabindex="0"
>
<span
@ -1526,11 +1538,12 @@ exports[`disable workloads overview details when cluster is not relevant given n
>
fullscreen
</span>
<div />
</i>
<div>
Fit to window
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_16"
tabindex="0"
>
<span
@ -1539,8 +1552,10 @@ exports[`disable workloads overview details when cluster is not relevant given n
>
keyboard_arrow_up
</span>
<div />
</i>
<div>
Open
</div>
</div>
</div>
</div>

View File

@ -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>

View File

@ -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 />

View File

@ -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 />

View File

@ -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 />

View File

@ -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;

View File

@ -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;

View File

@ -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

View File

@ -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

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -24,11 +24,6 @@ import showSuccessNotificationInjectable from "../../renderer/components/notific
import showCheckedErrorInjectable from "../../renderer/components/notifications/show-checked-error.injectable";
import getRandomUpgradeChartTabIdInjectable from "../../renderer/components/dock/upgrade-chart/get-random-upgrade-chart-tab-id.injectable";
// TODO: Make tooltips free of side effects by making it deterministic
jest.mock("../../renderer/components/tooltip/withTooltip", () => ({
withTooltip: (target: any) => target,
}));
describe("showing details for helm release", () => {
let builder: ApplicationBuilder;
let callForHelmReleasesMock: AsyncFnMock<CallForHelmReleases>;

View File

@ -44,3 +44,4 @@ global.ResizeObserver = class {
};
jest.mock("./renderer/components/monaco-editor/monaco-editor");
jest.mock("./renderer/components/tooltip/withTooltip");

View File

@ -0,0 +1,24 @@
/**
* Copyright (c) OpenLens Authors. All rights reserved.
* Licensed under MIT License. See LICENSE in root directory for more information.
*/
import React from "react";
export const withTooltip =
(Target: any) =>
({ tooltip, tooltipOverrideDisabled, ...props }: any) => {
if (tooltip) {
const testId = props["data-testid"];
return (
<>
<Target {...props} />
<div data-testid={testId && `tooltip-content-for-${testId}`}>
{tooltip.children || tooltip}
</div>
</>
);
}
return <Target {...props} />;
};

View File

@ -403,7 +403,6 @@ exports[`<ClusterFrame /> given cluster with list nodes and namespaces permissio
>
<i
class="Icon material interactive focusable small"
id="tooltip_target_56"
tabindex="0"
>
<span
@ -412,8 +411,10 @@ exports[`<ClusterFrame /> given cluster with list nodes and namespaces permissio
>
close
</span>
<div />
</i>
<div>
Close ⌘+W
</div>
</div>
</div>
</div>
@ -437,12 +438,13 @@ exports[`<ClusterFrame /> given cluster with list nodes and namespaces permissio
>
add
</span>
<div />
</i>
<div>
New tab
</div>
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_58"
tabindex="0"
>
<span
@ -451,11 +453,12 @@ exports[`<ClusterFrame /> given cluster with list nodes and namespaces permissio
>
fullscreen
</span>
<div />
</i>
<div>
Fit to window
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_59"
tabindex="0"
>
<span
@ -464,8 +467,10 @@ exports[`<ClusterFrame /> given cluster with list nodes and namespaces permissio
>
keyboard_arrow_up
</span>
<div />
</i>
<div>
Open
</div>
</div>
</div>
</div>
@ -884,7 +889,6 @@ exports[`<ClusterFrame /> given cluster with list nodes and namespaces permissio
>
<i
class="Icon material interactive focusable small"
id="tooltip_target_16"
tabindex="0"
>
<span
@ -893,8 +897,10 @@ exports[`<ClusterFrame /> given cluster with list nodes and namespaces permissio
>
close
</span>
<div />
</i>
<div>
Close ⌘+W
</div>
</div>
</div>
</div>
@ -918,12 +924,13 @@ exports[`<ClusterFrame /> given cluster with list nodes and namespaces permissio
>
add
</span>
<div />
</i>
<div>
New tab
</div>
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_18"
tabindex="0"
>
<span
@ -932,11 +939,12 @@ exports[`<ClusterFrame /> given cluster with list nodes and namespaces permissio
>
fullscreen
</span>
<div />
</i>
<div>
Fit to window
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_19"
tabindex="0"
>
<span
@ -945,8 +953,10 @@ exports[`<ClusterFrame /> given cluster with list nodes and namespaces permissio
>
keyboard_arrow_up
</span>
<div />
</i>
<div>
Open
</div>
</div>
</div>
</div>
@ -1424,7 +1434,6 @@ exports[`<ClusterFrame /> given cluster without list nodes, but with namespaces
>
<i
class="Icon material interactive focusable small"
id="tooltip_target_94"
tabindex="0"
>
<span
@ -1433,8 +1442,10 @@ exports[`<ClusterFrame /> given cluster without list nodes, but with namespaces
>
close
</span>
<div />
</i>
<div>
Close ⌘+W
</div>
</div>
</div>
</div>
@ -1458,12 +1469,13 @@ exports[`<ClusterFrame /> given cluster without list nodes, but with namespaces
>
add
</span>
<div />
</i>
<div>
New tab
</div>
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_96"
tabindex="0"
>
<span
@ -1472,11 +1484,12 @@ exports[`<ClusterFrame /> given cluster without list nodes, but with namespaces
>
fullscreen
</span>
<div />
</i>
<div>
Fit to window
</div>
<i
class="Icon material interactive focusable"
id="tooltip_target_97"
tabindex="0"
>
<span
@ -1485,8 +1498,10 @@ exports[`<ClusterFrame /> given cluster without list nodes, but with namespaces
>
keyboard_arrow_up
</span>
<div />
</i>
<div>
Open
</div>
</div>
</div>
</div>