UNPKG

@skyux/modals

Version:

This library was generated with [Nx](https://nx.dev).

30 lines (29 loc) 974 B
import { ComponentHarness, HarnessPredicate } from '@angular/cdk/testing'; import { SkyConfirmButtonStyleType } from '@skyux/modals'; import { SkyConfirmButtonHarnessFilters } from './confirm-button-harness-filters'; /** * Harness for interacting with a confirm component in tests. */ export declare class SkyConfirmButtonHarness extends ComponentHarness { /** * @internal */ static hostSelector: string; /** * Gets a `HarnessPredicate` that can be used to search for a * `SkyConfirmButtonHarness` that meets certain criteria. */ static with(filters: SkyConfirmButtonHarnessFilters): HarnessPredicate<SkyConfirmButtonHarness>; /** * Clicks the confirm button. */ click(): Promise<void>; /** * Gets the button style of the confirm button. */ getStyleType(): Promise<SkyConfirmButtonStyleType>; /** * Gets the text content of the confirm button. */ getText(): Promise<string>; }