From af8eaf9742fc52ab88bc92ec3d1f8903582fec01 Mon Sep 17 00:00:00 2001 From: Jari Kolehmainen Date: Fri, 29 Jan 2021 14:35:58 +0200 Subject: [PATCH] tweak integration tests Signed-off-by: Jari Kolehmainen --- integration/__tests__/command-palette.tests.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/integration/__tests__/command-palette.tests.ts b/integration/__tests__/command-palette.tests.ts index b22cfc26d0..789806c445 100644 --- a/integration/__tests__/command-palette.tests.ts +++ b/integration/__tests__/command-palette.tests.ts @@ -7,10 +7,7 @@ describe("Lens command palette", () => { let app: Application; describe("menu", () => { - beforeAll(async () => { - app = await utils.appStart(); - await utils.clickWhatsNew(app); - }, 20000); + beforeAll(async () => app = await utils.appStart(), 20000); afterAll(async () => { if (app?.isRunning()) { @@ -19,6 +16,7 @@ describe("Lens command palette", () => { }); it("opens command dialog from menu", async () => { + await utils.clickWhatsNew(app); await app.electron.ipcRenderer.send("test-menu-item-click", "View", "Command Palette..."); await app.client.waitUntilTextExists(".Select__option", "Preferences: Open"); await app.client.keys("Escape");