fix helm repos integration tests

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen committed 2021-08-26 11:09:42 +03:00
1 parent 2f8ff0220b
commit 65c8109d9d
2 files changed
+34 -1

No files matched your search

@@ -27,6 +27,7 @@
*/
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<void>;
@@ -65,6 +66,12 @@ 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,
});