wix-style-react
Version:
wix-style-react
17 lines • 996 B
TypeScript
import { UniDriver, BaseUniDriver } from '@wix/wix-ui-test-utils/unidriver';
import { ContentType } from './AvatarCore';
export interface AvatarCoreDriver extends BaseUniDriver {
/** Get the currently displayed type. Types are: 'text', 'icon', 'image'. It could be that the resolved type is 'image' but the currently displayed one is `text`. */
getContentType(): Promise<ContentType>;
/** Get the text content (generated initials) */
getTextContent(dataHook?: string): Promise<string>;
/** Wether the image wass loaded */
isImageLoaded(): Promise<boolean>;
/** Get the attribute value */
getAttribute(attrName: string, dataHook?: string): Promise<string | null>;
/** Get the property value */
getProperty(propName: string): Promise<string | null>;
hasClass(className: string, dataHook?: string): Promise<boolean>;
}
export declare const avatarCoreDriverFactory: (base: UniDriver) => AvatarCoreDriver;
//# sourceMappingURL=AvatarCore.uni.driver.d.ts.map