UNPKG

@wix/design-system

Version:

@wix/design-system

54 lines 1.62 kB
import { ButtonUniDriver } from '../Button/Button.uni.driver'; import { UniDriver } from '@wix/unidriver-core'; export type BaseModalLayoutUniDriver = ReturnType<typeof baseModalLayoutDriverFactory>; export declare const baseModalLayoutDriverFactory: (base: UniDriver, body?: UniDriver) => { /** * Gets the modal theme */ getTheme: () => Promise<string | null>; /** * Gets the modal skin */ getSkin: () => Promise<string | null>; /** * Clicks the modal close-button */ clickCloseButton: () => Promise<void>; /** * Clicks the modal help-button */ clickHelpButton: () => Promise<void>; /** * Checks whether a node with the provided dataHook exists */ childExists: (dataHook: string) => Promise<boolean>; /** * Gets the title's text */ getTitleText: () => Promise<string>; /** * Gets the subtitle's text */ getSubtitleText: () => Promise<string>; /** * Gets the secondary button driver */ getSecondaryButtonDriver: () => Promise<ButtonUniDriver>; /** * Gets the primary button driver */ getPrimaryButtonDriver: () => Promise<ButtonUniDriver>; /** * Gets the primary button's tooltip content */ getPrimaryButtonTooltipContent: () => Promise<string | null>; /** * Gets the illustration source */ getIllustrationSrc: () => Promise<string | null>; exists: () => Promise<boolean>; element: () => Promise<any>; click: () => Promise<void>; base: UniDriver; }; //# sourceMappingURL=BaseModalLayout.uni.driver.d.ts.map