From 9270026c75fad96af7d13c64f867efe3f279b519 Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Thu, 26 Aug 2021 08:47:00 -0400 Subject: [PATCH] Remove wait for list helm repos Signed-off-by: Sebastian Malton --- .../__tests__/app-preferences.tests.ts | 7 ------ integration/helpers/utils.ts | 23 ------------------- 2 files changed, 30 deletions(-) diff --git a/integration/__tests__/app-preferences.tests.ts b/integration/__tests__/app-preferences.tests.ts index 989218797f..4afa8cfd96 100644 --- a/integration/__tests__/app-preferences.tests.ts +++ b/integration/__tests__/app-preferences.tests.ts @@ -27,7 +27,6 @@ */ import type { Page } from "playwright"; import * as utils from "../helpers/utils"; -import { listHelmRepositories } from "../helpers/utils"; describe("preferences page tests", () => { let window: Page, cleanup: () => Promise; @@ -66,12 +65,6 @@ describe("preferences page tests", () => { it("ensures helm repos", async () => { await window.click("[data-testid=kubernetes-tab]"); - const repos = await listHelmRepositories(); // wait for default helm repo to be added - - if (repos.length === 0) { - fail("Lens failed to add any repositories"); - } - await window.waitForSelector("[data-testid=repository-name]", { timeout: 100_000, }); diff --git a/integration/helpers/utils.ts b/integration/helpers/utils.ts index b6154bd801..f0e82809fb 100644 --- a/integration/helpers/utils.ts +++ b/integration/helpers/utils.ts @@ -25,8 +25,6 @@ import * as path from "path"; import * as uuid from "uuid"; import { ElectronApplication, Frame, Page, _electron as electron } from "playwright"; import { noop } from "lodash"; -import { promisify } from "util"; -import { exec } from "child_process"; export const AppPaths: Partial> = { "win32": "./dist/win-unpacked/OpenLens.exe", @@ -119,24 +117,3 @@ export async function lauchMinikubeClusterFromCatalog(window: Page): Promise{ - for (let i = 0; i < 10; i += 1) { - try { - const { stdout } = await promiseExec("helm repo list -o json"); - - return JSON.parse(stdout); - } catch { - await new Promise(r => setTimeout(r, 2000)); // if no repositories, wait for Lens adding bitnami repository - } - } - - return []; -}