From 14a410ea0cf2a33bc251de5f8e2d555ba9670930 Mon Sep 17 00:00:00 2001 From: Jeff Robbins Date: Mon, 18 Nov 2024 13:48:46 -0500 Subject: [PATCH] =?UTF-8?q?fix:=20disable=20retry=20on=20menuItemClick=20?= =?UTF-8?q?=C6=92s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/general_helpers.ts | 2 +- src/menu_helpers.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/general_helpers.ts b/src/general_helpers.ts index 9de17a8..9556475 100644 --- a/src/general_helpers.ts +++ b/src/general_helpers.ts @@ -1,4 +1,4 @@ -import type { ElectronApplication, JSHandle, Page } from 'playwright-core' +import type { ElectronApplication } from 'playwright-core' import type { PageFunctionOn } from 'playwright-core/types/structs' import { retry, RetryOptions } from './utilities' diff --git a/src/menu_helpers.ts b/src/menu_helpers.ts index c6adde1..fc9a638 100644 --- a/src/menu_helpers.ts +++ b/src/menu_helpers.ts @@ -33,7 +33,7 @@ export function clickMenuItemById( throw new Error(`Menu item with id ${menuId} not found`) } }, id), - options + { disable: true, ...options } ) } @@ -95,7 +95,7 @@ export async function clickMenuItem

( } await mI.click() }, menuItem.commandId), - options + { disable: true, ...options } ) }