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