@skyux/indicators
Version:
This library was generated with [Nx](https://nx.dev).
48 lines (47 loc) • 1.47 kB
TypeScript
import { HarnessPredicate } from '@angular/cdk/testing';
import { SkyComponentHarness } from '@skyux/core/testing';
import type { SkyIndicatorDescriptionType, SkyIndicatorIconType } from '@skyux/indicators';
import { SkyAlertHarnessFilters } from './alert-harness-filters';
/**
* Harness for interacting with an alert component in tests.
*/
export declare class SkyAlertHarness extends SkyComponentHarness {
#private;
/**
* @internal
*/
static hostSelector: string;
/**
* Gets a `HarnessPredicate` that can be used to search for a
* `SkyAlertHarness` that meets certain criteria.
*/
static with(filters: SkyAlertHarnessFilters): HarnessPredicate<SkyAlertHarness>;
/**
* Gets the current alert type.
*/
getAlertType(): Promise<SkyIndicatorIconType | undefined>;
/**
* Gets the current alert text.
*/
getText(): Promise<string>;
/**
* Closes the alert.
*/
close(): Promise<void>;
/**
* Whether the user closed the alert.
*/
isClosed(): Promise<boolean>;
/**
* Whether the user can close the alert.
*/
isCloseable(): Promise<boolean>;
/**
* 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>;
}