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 _hoveredElement: HTMLElement | null = null;
|
||||||
private _activeModel: HighlightModel | null = null;
|
private _activeModel: HighlightModel | null = null;
|
||||||
private _expectProgrammaticKeyUp = false;
|
private _expectProgrammaticKeyUp = false;
|
||||||
private _pendingClickAction: { action: actions.ClickAction, timeout: NodeJS.Timeout } | undefined;
|
private _pendingClickAction: { action: actions.ClickAction, timeout: number } | undefined;
|
||||||
|
|
||||||
constructor(recorder: Recorder) {
|
constructor(recorder: Recorder) {
|
||||||
this._recorder = recorder;
|
this._recorder = recorder;
|
||||||
|
|
@ -268,7 +268,7 @@ class RecordActionTool implements RecorderTool {
|
||||||
modifiers: modifiersForEvent(event),
|
modifiers: modifiersForEvent(event),
|
||||||
clickCount: event.detail
|
clickCount: event.detail
|
||||||
},
|
},
|
||||||
timeout: setTimeout(() => this._commitPendingClickAction(), 200)
|
timeout: this._recorder.injectedScript.builtinSetTimeout(() => this._commitPendingClickAction(), 200)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue