@skyux/indicators
Version:
This library was generated with [Nx](https://nx.dev).
36 lines (35 loc) • 1.21 kB
TypeScript
import { HarnessPredicate } from '@angular/cdk/testing';
import { SkyComponentHarness } from '@skyux/core/testing';
import type { SkyIndicatorDescriptionType, SkyLabelType } from '@skyux/indicators';
import { SkyLabelHarnessFilters } from './label-harness-filters';
/**
* Harness for interacting with a label component in tests.
*/
export declare class SkyLabelHarness extends SkyComponentHarness {
#private;
/**
* @internal
*/
static hostSelector: string;
/**
* Gets a `HarnessPredicate` that can be used to search for a
* `SkyLookupHarness` that meets certain criteria.
*/
static with(filters: SkyLabelHarnessFilters): HarnessPredicate<SkyLabelHarness>;
/**
* Gets the text of the label component.
*/
getLabelText(): Promise<string>;
/**
* Gets the `labelType` of the label component.
*/
getLabelType(): Promise<SkyLabelType>;
/**
* Gets the `descriptionType` of the label component.
*/
getDescriptionType(): Promise<SkyIndicatorDescriptionType>;
/**
* Gets the custom text used for the screen reader description of the label component icon.
*/
getCustomDescription(): Promise<string>;
}