From ca79419ddec3b7e376b9eab94c966203880423a9 Mon Sep 17 00:00:00 2001 From: Jari Kolehmainen Date: Tue, 13 Apr 2021 11:39:48 +0300 Subject: [PATCH] fix integration tests Signed-off-by: Jari Kolehmainen --- integration/__tests__/cluster-pages.tests.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/integration/__tests__/cluster-pages.tests.ts b/integration/__tests__/cluster-pages.tests.ts index 2d7807e22b..12d95f887c 100644 --- a/integration/__tests__/cluster-pages.tests.ts +++ b/integration/__tests__/cluster-pages.tests.ts @@ -387,10 +387,11 @@ describe("Lens cluster pages", () => { await new Promise(r => setTimeout(r, 1000)); } } - await new Promise(r => setTimeout(r, 500)); // Give some extra time to prepare extensions + // Open logs tab in dock await app.client.click(".list .TableRow:first-child"); await app.client.waitForVisible(".Drawer"); + await app.client.waitForVisible(`ul.KubeObjectMenu li.MenuItem i[title="Logs"]`); await app.client.click(".drawer-title .Menu li:nth-child(2)"); // Check if controls are available await app.client.waitForVisible(".LogList .VirtualList");