@skyux/modals
Version:
This library was generated with [Nx](https://nx.dev).
65 lines (64 loc) • 1.82 kB
TypeScript
import { HarnessPredicate } from '@angular/cdk/testing';
import { SkyComponentHarness } from '@skyux/core/testing';
import { SkyModalHarnessFilters } from './modal-harness-filters';
/**
* Harness for interacting with a modal component in tests.
*/
export declare class SkyModalHarness extends SkyComponentHarness {
#private;
/**
* @internal
*/
static hostSelector: string;
/**
* Gets a `HarnessPredicate` that can be used to search for a
* `SkyModalHarness` that meets certain criteria
*/
static with(filters: SkyModalHarnessFilters): HarnessPredicate<SkyModalHarness>;
/**
* Clicks the help inline button.
*/
clickHelpInline(): Promise<void>;
/**
* Gets the aria-describedBy property of the modal.
* @deprecated
*/
getAriaDescribedBy(): Promise<string | null>;
/**
* Gets the aria-labelledBy property of the modal.
* @deprecated
*/
getAriaLabelledBy(): Promise<string | null>;
/**
* Gets the role of the modal.
*/
getAriaRole(): Promise<string | null>;
/**
* Gets the modal's heading text.
*/
getHeadingText(): Promise<string | undefined>;
/**
* Gets the help popover content.
*/
getHelpPopoverContent(): Promise<string | undefined>;
/**
* Gets the help popover title.
*/
getHelpPopoverTitle(): Promise<string | undefined>;
/**
* Gets the modal size.
*/
getSize(): Promise<string>;
/**
* Gets the wrapper class of the modal.
*/
getWrapperClass(): Promise<string | undefined>;
/**
* Whether the modal is full page.
*/
isFullPage(): Promise<boolean>;
/**
* Whether the modal has {@link SkyModalIsDirtyDirective.isDirty} set to dirty.
*/
isDirty(): Promise<boolean>;
}