@wix/design-system
Version:
@wix/design-system
29 lines • 1.41 kB
TypeScript
import { MessageBoxFunctionalLayoutTheme } from './MessageBoxFunctionalLayout.types';
export type MessageBoxFunctionalLayoutDriver = ReturnType<typeof messageBoxFunctionalLayoutDriverFactory>;
declare const messageBoxFunctionalLayoutDriverFactory: ({ element, }: {
element: HTMLElement;
}) => {
exists: () => boolean;
element: () => HTMLElement;
getConfirmationButtonText: () => string;
isConfirmationButtonPrefixIconExists: () => boolean;
isConfirmationButtonSuffixIconExists: () => boolean;
clickOnConfirmationButton: () => void;
getConfirmationButton: () => HTMLButtonElement | null;
getCancellationButton: () => HTMLButtonElement | null;
getHeaderCloseButton: () => HTMLButtonElement | null;
getCancellationButtonText: () => string;
isCancellationButtonPrefixIconExists: () => boolean;
isCancellationButtonSuffixIconExists: () => boolean;
clickOnCancellationButton: () => void;
clickOnHeaderCloseButton: () => void;
isThemeExist: (theme: MessageBoxFunctionalLayoutTheme) => boolean;
getFooter: () => Element | null;
getTitle: () => string;
getChildBySelector: (selector: string) => Element | null;
isCancelEnable: () => boolean;
isConfirmationEnable: () => boolean;
toHaveBodyPadding: () => boolean;
};
export default messageBoxFunctionalLayoutDriverFactory;
//# sourceMappingURL=MessageBoxFunctionalLayout.driver.d.ts.map