@skyux/layout
Version:
This library was generated with [Nx](https://nx.dev).
61 lines (60 loc) • 1.9 kB
TypeScript
import { HarnessPredicate } from '@angular/cdk/testing';
import { SkyComponentHarness } from '@skyux/core/testing';
import { SkyBoxHeadingLevel, SkyBoxHeadingStyle } from '@skyux/layout';
import { SkyBoxHarnessFilters } from './box-harness.filters';
/**
* Harness for interacting with a box component in tests.
*/
export declare class SkyBoxHarness extends SkyComponentHarness {
#private;
/**
* @internal
*/
static hostSelector: string;
/**
* Gets a `HarnessPredicate` that can be used to search for a
* `SkyBoxHarness` that meets certain criteria
*/
static with(filters: SkyBoxHarnessFilters): HarnessPredicate<SkyBoxHarness>;
/**
* Clicks the help inline button.
*/
clickHelpInline(): Promise<void>;
/**
* Gets the help popover content.
*/
getHelpPopoverContent(): Promise<string | undefined>;
/**
* Gets the help popover title.
*/
getHelpPopoverTitle(): Promise<string | undefined>;
/**
* Gets the box's heading text. If `headingHidden` is true,
* the text will still be returned.
*/
getHeadingText(): Promise<string | undefined>;
/**
* Whether the heading is hidden.
*/
getHeadingHidden(): Promise<boolean>;
/**
* The semantic heading level used for the checkbox group. Returns undefined if heading level is not set.
*/
getHeadingLevel(): Promise<SkyBoxHeadingLevel | undefined>;
/**
* The heading style used for the checkbox group.
*/
getHeadingStyle(): Promise<SkyBoxHeadingStyle>;
/**
* Gets the aria-label property of the box
*/
getAriaLabel(): Promise<string | null>;
/**
* Gets the aria-labelledby property of the box
*/
getAriaLabelledby(): Promise<string | null>;
/**
* Gets the aria-role property of the box
*/
getAriaRole(): Promise<string | null>;
}