@skyux/help-inline
Version:
This library was generated with [Nx](https://nx.dev).
61 lines (57 loc) • 1.65 kB
TypeScript
import { HarnessPredicate } from '@angular/cdk/testing';
import { SkyHarnessFilters, SkyComponentHarness } from '@skyux/core/testing';
/**
* A set of criteria that can be used to filter a list of `SkyHelpInlineHarness` instances.
*/
interface SkyHelpInlineHarnessFilters extends SkyHarnessFilters {
}
/**
* Harness for interacting with a help inline button component in tests.
*/
declare class SkyHelpInlineHarness extends SkyComponentHarness {
#private;
/**
* @internal
*/
static hostSelector: string;
/**
* Gets a `HarnessPredicate` that can be used to search for a
* `SkyHelpInlineHarness` that meets certain criteria.
*/
static with(filters: SkyHelpInlineHarnessFilters): HarnessPredicate<SkyHelpInlineHarness>;
/**
* Clicks the help inline button.
*/
click(): Promise<void>;
/**
* Gets the `aria-controls` value.
*/
getAriaControls(): Promise<string | null>;
/**
* Gets the `aria-expanded` value.
*/
getAriaExpanded(): Promise<boolean>;
/**
* Gets the `aria-label` value.
*/
getAriaLabel(): Promise<string | null>;
/**
* Gets the `aria-labelledby` value.
* @internal
*/
getAriaLabelledBy(): Promise<string | null>;
/**
* Gets the label text.
*/
getLabelText(): Promise<string | undefined>;
/**
* Gets the help popover content.
*/
getPopoverContent(): Promise<string | undefined>;
/**
* Gets the help popover title.
*/
getPopoverTitle(): Promise<string | undefined>;
}
export { SkyHelpInlineHarness };
export type { SkyHelpInlineHarnessFilters };