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