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) {