From 41797856cde87c29e1f1e089843b2ec0be2bc0a6 Mon Sep 17 00:00:00 2001 From: Alex Andreev Date: Wed, 25 Nov 2020 16:19:39 +0300 Subject: [PATCH] Waiting for menu to be opened Signed-off-by: Alex Andreev --- integration/__tests__/app.tests.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/integration/__tests__/app.tests.ts b/integration/__tests__/app.tests.ts index c8c7af7c8b..eb67fc9ee8 100644 --- a/integration/__tests__/app.tests.ts +++ b/integration/__tests__/app.tests.ts @@ -136,6 +136,7 @@ describe("Lens integration tests", () => { it('adds cluster in test-workspace', async () => { await app.client.click('#current-workspace .Icon'); + await app.client.waitForVisible('.WorkspaceMenu li[title="test description"]'); await app.client.click('.WorkspaceMenu li[title="test description"]'); await addMinikubeCluster(app); await app.client.waitUntilTextExists("pre.kube-auth-out", "Authentication proxy started"); @@ -144,6 +145,7 @@ describe("Lens integration tests", () => { it('checks if default workspace has active cluster', async () => { await app.client.click('#current-workspace .Icon'); + await app.client.waitForVisible('.WorkspaceMenu > li:first-of-type'); await app.client.click('.WorkspaceMenu > li:first-of-type'); await app.client.waitForVisible(".ClustersMenu .ClusterIcon.active"); });