@skyux/indicators
Version:
This library was generated with [Nx](https://nx.dev).
48 lines (47 loc) • 1.65 kB
TypeScript
import { HarnessPredicate } from '@angular/cdk/testing';
import { SkyComponentHarness } from '@skyux/core/testing';
import type { SkyIndicatorDescriptionType, SkyIndicatorIconType } from '@skyux/indicators';
import { SkyStatusIndicatorHarnessFilters } from './status-indicator-harness-filters';
/**
* Harness for interacting with a status indicator component in tests.
*/
export declare class SkyStatusIndicatorHarness extends SkyComponentHarness {
#private;
/**
* @internal
*/
static hostSelector: string;
/**
* Gets a `HarnessPredicate` that can be used to search for a
* `SkyStatusIndicatorHarness` that meets certain criteria.
*/
static with(filters: SkyStatusIndicatorHarnessFilters): HarnessPredicate<SkyStatusIndicatorHarness>;
/**
* Gets the current status indicator type.
*/
getIndicatorType(): Promise<SkyIndicatorIconType | undefined>;
/**
* Gets the current status indicator text.
*/
getText(): Promise<string>;
/**
* Gets the `descriptionType` of the status indicator component.
*/
getDescriptionType(): Promise<SkyIndicatorDescriptionType>;
/**
* Gets the custom text used for the screen reader description of the status indicator component icon.
*/
getCustomDescription(): Promise<string>;
/**
* Clicks the help inline button.
*/
clickHelpInline(): Promise<void>;
/**
* Gets the help inline popover content.
*/
getHelpPopoverContent(): Promise<string | undefined>;
/**
* Gets the help inline popover title.
*/
getHelpPopoverTitle(): Promise<string | undefined>;
}