@wix/design-system
Version:
@wix/design-system
33 lines • 1.49 kB
TypeScript
import type { UniDriver } from '@wix/wix-ui-test-utils/unidriver';
export declare const loaderUniDriverFactory: (base: UniDriver, body: UniDriver) => {
/** @deprecated Should be private */
component: () => Promise<any>;
/** returns the loader color ('blue' or 'white') */
getColor: () => Promise<import("./Loader.types").LoaderColor | undefined>;
/** returns the element text */
getText: () => Promise<string>;
/** true if the element has text */
hasText: () => Promise<boolean>;
/** true when using the large loader */
isLarge: () => Promise<boolean>;
/** true when using the medium loader */
isMedium: () => Promise<boolean>;
/** true when using the small loader */
isSmall: () => Promise<boolean>;
/** true when using the tiny loader */
isTiny: () => Promise<boolean>;
/** true when loader is in loading status */
isLoading: () => Promise<boolean>;
/** true when loader is in error status */
isError: () => Promise<boolean>;
/** true when loader is in success status */
isSuccess: () => Promise<boolean>;
/** trigger the tooltip and returns the value of the tooltip message (async function) */
getStatusMessage: () => Promise<string | null>;
exists: () => Promise<boolean>;
element: () => Promise<any>;
click: () => Promise<void>;
base: UniDriver;
};
export type LoaderUniDriver = ReturnType<typeof loaderUniDriverFactory>;
//# sourceMappingURL=Loader.uni.driver.d.ts.map