mirror of
https://github.com/microsoft/playwright.git
synced 2024-08-17 08:00:23 +03:00
fix(recorder): reference Language enum for recorderTypes (#29294)
This commit is contained in:
parent
b88a008a87
commit
08729cd2e6
@ -16,12 +16,27 @@
|
|||||||
|
|
||||||
import type { Language } from '../../playwright-core/src/utils/isomorphic/locatorGenerators';
|
import type { Language } from '../../playwright-core/src/utils/isomorphic/locatorGenerators';
|
||||||
|
|
||||||
export type Point = { x: number, y: number };
|
export type Point = { x: number; y: number };
|
||||||
|
|
||||||
export type Mode = 'inspecting' | 'recording' | 'none' | 'assertingText' | 'recording-inspecting' | 'standby' | 'assertingVisibility' | 'assertingValue';
|
export type Mode =
|
||||||
|
| 'inspecting'
|
||||||
|
| 'recording'
|
||||||
|
| 'none'
|
||||||
|
| 'assertingText'
|
||||||
|
| 'recording-inspecting'
|
||||||
|
| 'standby'
|
||||||
|
| 'assertingVisibility'
|
||||||
|
| 'assertingValue';
|
||||||
|
|
||||||
export type EventData = {
|
export type EventData = {
|
||||||
event: 'clear' | 'resume' | 'step' | 'pause' | 'setMode' | 'selectorUpdated' | 'fileChanged';
|
event:
|
||||||
|
| 'clear'
|
||||||
|
| 'resume'
|
||||||
|
| 'step'
|
||||||
|
| 'pause'
|
||||||
|
| 'setMode'
|
||||||
|
| 'selectorUpdated'
|
||||||
|
| 'fileChanged';
|
||||||
params: any;
|
params: any;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -33,7 +48,7 @@ export type UIState = {
|
|||||||
mode: Mode;
|
mode: Mode;
|
||||||
actionPoint?: Point;
|
actionPoint?: Point;
|
||||||
actionSelector?: string;
|
actionSelector?: string;
|
||||||
language: 'javascript' | 'python' | 'java' | 'csharp' | 'jsonl';
|
language: Language;
|
||||||
testIdAttributeName: string;
|
testIdAttributeName: string;
|
||||||
overlay: OverlayState;
|
overlay: OverlayState;
|
||||||
};
|
};
|
||||||
@ -49,8 +64,8 @@ export type CallLog = {
|
|||||||
reveal?: boolean;
|
reveal?: boolean;
|
||||||
duration?: number;
|
duration?: number;
|
||||||
params: {
|
params: {
|
||||||
url?: string,
|
url?: string;
|
||||||
selector?: string,
|
selector?: string;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user