@skyux/indicators
Version:
This library was generated with [Nx](https://nx.dev).
42 lines (41 loc) • 1.09 kB
TypeScript
import { ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
import { SkyTokenHarnessFilters } from './token-harness-filters';
/**
* Harness for interacting with a token component in tests.
*/
export declare class SkyTokenHarness extends ComponentHarness {
#private;
/**
* @internal
*/
static hostSelector: string;
/**
* Gets a `HarnessPredicate` that can be used to search for a
* `SkyTokenHarness` that meets certain criteria.
*/
static with(filters: SkyTokenHarnessFilters): HarnessPredicate<SkyTokenHarness>;
/**
* Selects the token.
*/
select(): Promise<void>;
/**
* Dismisses the token.
*/
dismiss(): Promise<void>;
/**
* Returns the text content of the token.
*/
getText(): Promise<string>;
/**
* Whether the token is disabled.
*/
isDisabled(): Promise<boolean>;
/**
* Whether the token is dismissible.
*/
isDismissible(): Promise<boolean>;
/**
* Whether the token is focused.
*/
isFocused(): Promise<boolean>;
}