@@ -29,8 +29,6 @@ import {
2929} from "./pw-tools-core.interactions.navigation.js" ;
3030import { normalizeTimeoutMs , requireRef , requireRefOrSelector } from "./pw-tools-core.shared.js" ;
3131
32- const resolveInteractionTimeoutMs = resolveActInteractionTimeoutMs ;
33-
3432export async function highlightViaPlaywright (
3533 opts : InteractionTargetOptions & {
3634 ref : string ;
@@ -64,7 +62,7 @@ export async function clickViaPlaywright(
6462 const locator = resolved . ref
6563 ? refLocator ( page , requireRef ( resolved . ref ) )
6664 : page . locator ( resolved . selector ! ) ;
67- const timeout = resolveInteractionTimeoutMs ( opts . timeoutMs ) ;
65+ const timeout = resolveActInteractionTimeoutMs ( opts . timeoutMs ) ;
6866 const signal = opts . signal ;
6967 const { abortPromise, cleanup } = createAbortPromiseWithListener ( signal , ( reason ) => {
7068 if ( isBrowserObservedDialogBlockedError ( reason ) ) {
@@ -175,7 +173,7 @@ export async function hoverViaPlaywright(opts: ElementInteractionOptions): Promi
175173 {
176174 action : async ( ) =>
177175 await locator . hover ( {
178- timeout : resolveInteractionTimeoutMs ( opts . timeoutMs ) ,
176+ timeout : resolveActInteractionTimeoutMs ( opts . timeoutMs ) ,
179177 } ) ,
180178 cdpUrl : opts . cdpUrl ,
181179 page,
@@ -220,7 +218,7 @@ export async function dragViaPlaywright(
220218 {
221219 action : async ( ) =>
222220 await startLocator . dragTo ( endLocator , {
223- timeout : resolveInteractionTimeoutMs ( opts . timeoutMs ) ,
221+ timeout : resolveActInteractionTimeoutMs ( opts . timeoutMs ) ,
224222 } ) ,
225223 cdpUrl : opts . cdpUrl ,
226224 page,
@@ -259,7 +257,7 @@ export async function selectOptionViaPlaywright(
259257 {
260258 action : async ( ) => {
261259 await locator . selectOption ( opts . values , {
262- timeout : resolveInteractionTimeoutMs ( opts . timeoutMs ) ,
260+ timeout : resolveActInteractionTimeoutMs ( opts . timeoutMs ) ,
263261 } ) ;
264262 } ,
265263 cdpUrl : opts . cdpUrl ,
@@ -328,7 +326,7 @@ export async function typeViaPlaywright(
328326 const locator = resolved . ref
329327 ? refLocator ( page , requireRef ( resolved . ref ) )
330328 : page . locator ( resolved . selector ! ) ;
331- const timeout = resolveInteractionTimeoutMs ( opts . timeoutMs ) ;
329+ const timeout = resolveActInteractionTimeoutMs ( opts . timeoutMs ) ;
332330 const { abortPromise, cleanup } = createAbortPromiseWithListener ( opts . signal ) ;
333331 const reconcileRemoteDialog = ( ) => reconcileRemoteDialogAfterActionSettled ( page , opts . signal ) ;
334332 try {
@@ -370,7 +368,7 @@ export async function fillFormViaPlaywright(
370368 } ,
371369) : Promise < void > {
372370 const page = await getRestoredPageForTarget ( opts ) ;
373- const timeout = resolveInteractionTimeoutMs ( opts . timeoutMs ) ;
371+ const timeout = resolveActInteractionTimeoutMs ( opts . timeoutMs ) ;
374372 const { abortPromise, cleanup } = createAbortPromiseWithListener ( opts . signal ) ;
375373 const reconcileRemoteDialog = ( ) => reconcileRemoteDialogAfterActionSettled ( page , opts . signal ) ;
376374 try {
0 commit comments