@skyux/modals
Version:
This library was generated with [Nx](https://nx.dev).
43 lines (42 loc) • 1.31 kB
TypeScript
import { SkyComponentHarness } from '@skyux/core/testing';
import { SkyConfirmType } from '@skyux/modals';
import { SkyConfirmButtonHarness } from './confirm-button-harness';
import { SkyConfirmButtonHarnessFilters } from './confirm-button-harness-filters';
/**
* Harness for interacting with a confirm component in tests.
*/
export declare class SkyConfirmHarness extends SkyComponentHarness {
#private;
/**
* @internal
*/
static hostSelector: string;
/**
* Clicks a confirm button.
*/
clickCustomButton(filters: SkyConfirmButtonHarnessFilters): Promise<void>;
/**
* Clicks a confirm button.
*/
clickOkButton(): Promise<void>;
/**
* Gets the body of the confirm component.
*/
getBodyText(): Promise<string | undefined>;
/**
* Gets the confirm component's custom buttons.
*/
getCustomButtons(filters?: SkyConfirmButtonHarnessFilters): Promise<SkyConfirmButtonHarness[]>;
/**
* Gets the message of the confirm component.
*/
getMessageText(): Promise<string>;
/**
* Gets the type of the confirm component.
*/
getType(): Promise<SkyConfirmType>;
/**
* Whether the whitespace is preserved on the confirm component.
*/
isWhiteSpacePreserved(): Promise<boolean>;
}