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

Fix tests after rebase

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2022-10-03 11:37:49 -04:00
parent 2836f0791b
commit c6c10c1e6b
2 changed files with 15 additions and 5 deletions

View File

@ -13,8 +13,9 @@ exports[`Deleting a cluster when an internal kubeconfig cluster is used when the
class="items"
>
<i
class="Icon material interactive disabled focusable"
class="Icon material interactive focusable"
data-testid="home-button"
tabindex="0"
>
<span
class="icon"
@ -398,8 +399,9 @@ exports[`Deleting a cluster when the kubeconfig has multiple clusters when the d
class="items"
>
<i
class="Icon material interactive disabled focusable"
class="Icon material interactive focusable"
data-testid="home-button"
tabindex="0"
>
<span
class="icon"
@ -816,8 +818,9 @@ exports[`Deleting a cluster when the kubeconfig has multiple clusters when the d
class="items"
>
<i
class="Icon material interactive disabled focusable"
class="Icon material interactive focusable"
data-testid="home-button"
tabindex="0"
>
<span
class="icon"
@ -1313,8 +1316,9 @@ exports[`Deleting a cluster when the kubeconfig has multiple clusters when the d
class="items"
>
<i
class="Icon material interactive disabled focusable"
class="Icon material interactive focusable"
data-testid="home-button"
tabindex="0"
>
<span
class="icon"
@ -1810,8 +1814,9 @@ exports[`Deleting a cluster when the kubeconfig has only one cluster when the di
class="items"
>
<i
class="Icon material interactive disabled focusable"
class="Icon material interactive focusable"
data-testid="home-button"
tabindex="0"
>
<span
class="icon"

View File

@ -26,9 +26,12 @@ import requestHelmChartsInjectable from "../../../common/k8s-api/endpoints/helm-
import requestHelmChartVersionsInjectable from "../../../common/k8s-api/endpoints/helm-charts.api/request-versions.injectable";
import requestHelmChartReadmeInjectable from "../../../common/k8s-api/endpoints/helm-charts.api/request-readme.injectable";
import requestHelmChartValuesInjectable from "../../../common/k8s-api/endpoints/helm-charts.api/request-values.injectable";
import type { RequestDetailedHelmRelease } from "../../../renderer/components/+helm-releases/release-details/release-details-model/request-detailed-helm-release.injectable";
import requestDetailedHelmReleaseInjectable from "../../../renderer/components/+helm-releases/release-details/release-details-model/request-detailed-helm-release.injectable";
describe("installing helm chart from new tab", () => {
let builder: ApplicationBuilder;
let requestDetailedHelmReleaseMock: AsyncFnMock<RequestDetailedHelmRelease>;
let requestHelmChartsMock: AsyncFnMock<RequestHelmCharts>;
let requestHelmChartVersionsMock: AsyncFnMock<RequestHelmChartVersions>;
let requestHelmChartReadmeMock: AsyncFnMock<RequestHelmChartReadme>;
@ -40,6 +43,7 @@ describe("installing helm chart from new tab", () => {
builder.setEnvironmentToClusterFrame();
requestDetailedHelmReleaseMock = asyncFn();
requestHelmChartsMock = asyncFn();
requestHelmChartVersionsMock = asyncFn();
requestHelmChartReadmeMock = asyncFn();
@ -48,6 +52,7 @@ describe("installing helm chart from new tab", () => {
builder.beforeWindowStart((windowDi) => {
windowDi.override(directoryForLensLocalStorageInjectable, () => "/some-directory-for-lens-local-storage");
windowDi.override(requestDetailedHelmReleaseInjectable, () => requestDetailedHelmReleaseMock);
windowDi.override(requestHelmChartsInjectable, () => requestHelmChartsMock);
windowDi.override(requestHelmChartVersionsInjectable, () => requestHelmChartVersionsMock);
windowDi.override(requestHelmChartReadmeInjectable, () => requestHelmChartReadmeMock);