@sharegainltd/ngrid-cypress
Version:
Cypress Test Helpers For @sharegainltd/ngrid
24 lines (23 loc) • 924 B
TypeScript
/// <reference types="cypress" />
/// <reference types="cypress" />
import { Position, ScrollBehaviorOptions } from './getCypressElementCoordinates';
import { MouseButtonNumbers } from './mouseButtonNumbers';
export interface RealMouseDownOptions {
/** Pointer type for realMouseDown, if "pen" touch simulated */
pointer?: "mouse" | "pen";
/**
* Position of the realMouseDown event relative to the element
* @example cy.realMouseDown({ position: "topLeft" })
*/
position?: Position;
/**
* Controls how the page is scrolled to bring the subject into view, if needed.
* @example cy.realMouseDown({ scrollBehavior: "top" });
*/
scrollBehavior?: ScrollBehaviorOptions;
/**
* @default "left"
*/
button?: keyof typeof MouseButtonNumbers;
}
export declare function realMouseDown(subject: JQuery, options?: RealMouseDownOptions): Promise<JQuery<HTMLElement>>;