From b51490ecfdc5625919d9e6142615c612227351b2 Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Wed, 2 Nov 2022 16:10:01 -0400 Subject: [PATCH] Fix type error in integration tests file Signed-off-by: Sebastian Malton --- integration/__tests__/app-preferences.tests.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/integration/__tests__/app-preferences.tests.ts b/integration/__tests__/app-preferences.tests.ts index e5cca7c19c..1d7d7029fb 100644 --- a/integration/__tests__/app-preferences.tests.ts +++ b/integration/__tests__/app-preferences.tests.ts @@ -24,9 +24,10 @@ describe("preferences page tests", () => { await app.evaluate(async ({ app }) => { await app.applicationMenu - .getMenuItemById(process.platform === "darwin" ? "mac" : "file") - .submenu.getMenuItemById("navigate-to-preferences") - .click(); + ?.getMenuItemById(process.platform === "darwin" ? "mac" : "file") + ?.submenu + ?.getMenuItemById("navigate-to-preferences") + ?.click(); }); }, 10*60*1000);