@wix/design-system
Version:
@wix/design-system
40 lines • 1.87 kB
TypeScript
import { UniDriver } from '@wix/unidriver-core';
export type ModalUniDriver = ReturnType<typeof modalUniDriverFactory>;
export declare const modalUniDriverFactory: (base: UniDriver, body: UniDriver) => {
/** true if the modal is on the DOM */
exists: () => Promise<boolean>;
/** true when the module is open */
isOpen: () => Promise<boolean>;
getChildBySelector: (selector: string) => Promise<UniDriver<any, {
parent?: /*elided*/ any | undefined;
base?: any;
selector?: string | Promise<string>;
idx?: number;
timeBudget?: number;
}, any> | null>;
/** true if the modal is scrollable */
isScrollable: () => Promise<boolean>;
closeButtonExists: () => Promise<boolean>;
/** click on the modal overlay (helpful for testing if the modal is dismissed) */
clickOnOverlay: () => Promise<void>;
clickOnCloseButton: () => Promise<void>;
/** click on navigation control previous button */
clickOnNavigationPrevious: () => Promise<void>;
/** click on navigation control next button */
clickOnNavigationNext: () => Promise<void>;
navigationPreviousExists: () => Promise<boolean>;
navigationNextExists: () => Promise<boolean>;
getNavigationPreviousLabel: () => Promise<string | null>;
getNavigationNextLabel: () => Promise<string | null>;
/** returns the element of the modal content (helpful to initialize a layout testkit) */
getContent: () => Promise<any>;
/** returns the style of the modal content */
getContentStyle: () => Promise<any>;
/** returns the modal aria-label value as given in contentLabel property */
getContentLabel: () => Promise<string | null>;
getZIndex: () => Promise<any>;
element: () => Promise<any>;
click: () => Promise<void>;
base: UniDriver;
};
//# sourceMappingURL=Modal.uni.driver.d.ts.map