From 35811d7707f12728622705b7b5cba10e2b8eb507 Mon Sep 17 00:00:00 2001 From: Jari Kolehmainen Date: Thu, 8 Apr 2021 20:36:44 +0300 Subject: [PATCH] integration test fix Signed-off-by: Jari Kolehmainen --- integration/__tests__/cluster-pages.tests.ts | 2 +- integration/helpers/minikube.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/integration/__tests__/cluster-pages.tests.ts b/integration/__tests__/cluster-pages.tests.ts index e8a9468bde..2d7807e22b 100644 --- a/integration/__tests__/cluster-pages.tests.ts +++ b/integration/__tests__/cluster-pages.tests.ts @@ -26,7 +26,7 @@ describe("Lens cluster pages", () => { const addCluster = async () => { await utils.clickWhatsNew(app); await utils.clickWelcomeNotification(app); - await app.client.waitUntilTextExists("h5", "Catalog"); + await app.client.waitUntilTextExists("div", "Catalog"); await addMinikubeCluster(app); await waitForMinikubeDashboard(app); await app.client.click('a[href="/nodes"]'); diff --git a/integration/helpers/minikube.ts b/integration/helpers/minikube.ts index e2ca0e0f23..2c62279e4b 100644 --- a/integration/helpers/minikube.ts +++ b/integration/helpers/minikube.ts @@ -49,6 +49,8 @@ export async function addMinikubeCluster(app: Application) { } // else the only context, which must be 'minikube', is automatically selected await app.client.click("div.Select__control"); // hide the context drop-down list (it might be obscuring the Add cluster(s) button) await app.client.click("button.primary"); // add minikube cluster + await app.client.waitUntilTextExists("div.TableCell", "minikube"); + await app.client.click("div.TableRow"); } export async function waitForMinikubeDashboard(app: Application) {