Skip to content

Commit

Permalink
fix: disable retry on menuItemClick ƒs
Browse files Browse the repository at this point in the history
  • Loading branch information
jjeff committed Nov 18, 2024
1 parent 1419d81 commit 14a410e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/general_helpers.ts
Original file line number Diff line number Diff line change
@@ -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'

Expand Down
4 changes: 2 additions & 2 deletions src/menu_helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function clickMenuItemById(
throw new Error(`Menu item with id ${menuId} not found`)
}
}, id),
options
{ disable: true, ...options }
)
}

Expand Down Expand Up @@ -95,7 +95,7 @@ export async function clickMenuItem<P extends keyof MenuItemPartial>(
}
await mI.click()
}, menuItem.commandId),
options
{ disable: true, ...options }
)
}

Expand Down

0 comments on commit 14a410e

Please sign in to comment.