UNPKG

@wix/design-system

Version:

@wix/design-system

79 lines 2.31 kB
import type { UniDriver } from '@wix/wix-ui-test-utils/unidriver'; export declare const sectionHelperUniDriverFactory: (base: UniDriver) => { /** * Gets the title text * @return {Promise<string>} */ titleText: () => Promise<string>; /** * Gets the action text * @return {Promise<string>} */ actionText: () => Promise<string>; /** * Clicks the action * @return {Promise<void>} */ clickAction: () => Promise<void>; /** * Clicks the close button * @return {Promise<void>} */ clickClose: () => Promise<void>; /** * Checks whether the close button is displayed * @return {Promise<boolean>} */ isCloseButtonDisplayed: () => Promise<boolean>; /** * Checks whether the prefix is displayed * @return {Promise<boolean>} */ hasPrefix: () => Promise<boolean>; /** * Gets the text content * @return {Promise<string>} */ textContent: () => Promise<string>; /** * Checks whether the component appears as "warning" * @return {Promise<boolean>} */ isWarning: () => Promise<boolean>; /** * Checks whether the component appears as "standard" * @return {Promise<boolean>} */ isStandard: () => Promise<boolean>; /** * Checks whether the component appears as "danger" * @return {Promise<boolean>} */ isDanger: () => Promise<boolean>; /** * Checks whether the component appears as "experimentalDark" * @return {Promise<boolean>} */ isExperimentalDark: () => Promise<boolean>; /** * Checks whether the component appears as "success" * @return {Promise<boolean>} */ isSuccess: () => Promise<boolean>; /** * Checks whether the component appears as "premium" * @return {Promise<boolean>} */ isPremium: () => Promise<boolean>; /** * Checks whether the component appears as "preview" * @return {Promise<boolean>} */ isPreview: () => Promise<boolean>; exists: () => Promise<boolean>; element: () => Promise<any>; click: () => Promise<void>; base: UniDriver; }; export type SectionHelperUniDriver = ReturnType<typeof sectionHelperUniDriverFactory>; //# sourceMappingURL=SectionHelper.uni.driver.d.ts.map