mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
chore: make recorder tests pass in frozen mode (#32645)
This commit is contained in:
parent
3bff7b6ab1
commit
47713e8a66
@ -211,7 +211,7 @@ class RecordActionTool implements RecorderTool {
|
||||
private _hoveredElement: HTMLElement | null = null;
|
||||
private _activeModel: HighlightModel | null = null;
|
||||
private _expectProgrammaticKeyUp = false;
|
||||
private _pendingClickAction: { action: actions.ClickAction, timeout: NodeJS.Timeout } | undefined;
|
||||
private _pendingClickAction: { action: actions.ClickAction, timeout: number } | undefined;
|
||||
|
||||
constructor(recorder: Recorder) {
|
||||
this._recorder = recorder;
|
||||
@ -268,7 +268,7 @@ class RecordActionTool implements RecorderTool {
|
||||
modifiers: modifiersForEvent(event),
|
||||
clickCount: event.detail
|
||||
},
|
||||
timeout: setTimeout(() => this._commitPendingClickAction(), 200)
|
||||
timeout: this._recorder.injectedScript.builtinSetTimeout(() => this._commitPendingClickAction(), 200)
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user