wix-style-react
Version:
30 lines (27 loc) • 1.08 kB
TypeScript
import { BaseUniDriver } from 'wix-ui-test-utils/unidriver';
import { StatusIndications } from '../common';
export interface VariableInputUniDriver extends BaseUniDriver {
/** Returns true if component is disabled */
isDisabled(): Promise<boolean>;
/** Get the text content of the component*/
getContent(): Promise<string>;
/** Get the text content of the component placeholder*/
getPlaceholder(): Promise<string>;
/** Enter text as value to the component*/
enterText(value: string): Promise<void>;
/** Simulate blur event */
blur(): Promise<void>;
/** Simulate focus event */
focus(): Promise<void>;
/** Returns true if error indication exists */
hasError(): Promise<boolean>;
/** Get the error message content */
getErrorMessage(): Promise<string>;
/** Returns true if warning indication exists */
hasWarning(): Promise<boolean>;
/** Get the warning message content */
getWarningMessage(): Promise<string>;
// Status
hasStatus: (status: StatusIndications) => Promise<boolean>;
getStatusMessage: () => Promise<string | null>;
}