UNPKG

@skyux/layout

Version:

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

39 lines (38 loc) 1.16 kB
import { HarnessPredicate } from '@angular/cdk/testing'; import { SkyComponentHarness } from '@skyux/core/testing'; import { SkyActionButtonHarnessFilters } from './action-button-harness.filters'; /** * Harness for interacting with a action button component in tests. */ export declare class SkyActionButtonHarness extends SkyComponentHarness { #private; /** * @internal */ static hostSelector: string; /** * Gets a `HarnessPredicate` that can be used to search for a * `SkyActionButtonHarness` that meets certain criteria. */ static with(filters: SkyActionButtonHarnessFilters): HarnessPredicate<SkyActionButtonHarness>; /** * Clicks the action button. */ click(): Promise<void>; /** * Gets the action button details text. */ getDetailsText(): Promise<string | null>; /** * Gets the action button header text. */ getHeaderText(): Promise<string | null>; /** * Gets the action button icon type. */ getIconType(): Promise<string | undefined>; /** * Gets the action button link. */ getLink(): Promise<string | undefined>; }