You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
530 B
21 lines
530 B
4 years ago
|
// Definitions by: Wu Haotian <https://github.com/whtsky>
|
||
|
export interface IUserOptions {
|
||
|
allAtOnce?: boolean;
|
||
|
delay?: number;
|
||
|
}
|
||
|
|
||
|
type TargetElement = Element | Window;
|
||
|
|
||
|
declare const userEvent: {
|
||
|
click: (element: TargetElement) => void;
|
||
|
dblClick: (element: TargetElement) => void;
|
||
|
selectOptions: (element: TargetElement, values: string | string[]) => void;
|
||
|
type: (
|
||
|
element: TargetElement,
|
||
|
text: string,
|
||
|
userOpts?: IUserOptions
|
||
|
) => Promise<void>;
|
||
|
};
|
||
|
|
||
|
export default userEvent;
|