UNPKG

@ni/spright-components

Version:

NI Spright Components

25 lines (24 loc) 837 B
import type { ChatInput } from '..'; /** * Page object for the `spright-chat-input` component to provide consistent ways * of querying and interacting with the component during tests. */ export declare class ChatInputPageObject { protected readonly element: ChatInput; constructor(element: ChatInput); isSendButtonEnabled(): boolean; isTextAreaFocused(): boolean; clickSendButton(): void; getSendButtonTitle(): string; getSendButtonTextContent(): string; getSendButtonTabIndex(): string | null; textAreaHasFocus(): boolean; getTextAreaTabIndex(): string | null; getPlaceholder(): string; getRenderedText(): string; setText(text: string): void; pressEnterKey(): Promise<void>; pressShiftEnterKey(): Promise<void>; private getSendButton; private sendEnterKeyEvents; }