@skyux/layout
Version:
This library was generated with [Nx](https://nx.dev).
40 lines (39 loc) • 1.3 kB
TypeScript
import { HarnessPredicate } from '@angular/cdk/testing';
import { SkyComponentHarness } from '@skyux/core/testing';
import { SkyTextExpandHarnessFilters } from './text-expand-harness-filters';
import { SkyTextExpandModalHarness } from './text-expand-modal-harness';
/**
* Harness for interacting with a text expand component in tests.
*/
export declare class SkyTextExpandHarness extends SkyComponentHarness {
#private;
/**
* @internal
*/
static hostSelector: string;
/**
* Gets a `HarnessPredicate` that can be used to search for a
* `SkyTextExpandHarness` that meets certain criteria.
*/
static with(filters: SkyTextExpandHarnessFilters): HarnessPredicate<SkyTextExpandHarness>;
/**
* Clicks the button element that expands or collapses text.
*/
clickExpandCollapseButton(): Promise<void>;
/**
* Gets the harness to interact with the modal expanded view.
*/
getExpandedViewModal(): Promise<SkyTextExpandModalHarness>;
/**
* Gets the text content of the text expand.
*/
getText(): Promise<string>;
/**
* Whether the text will expand to a modal.
*/
textExpandsToModal(): Promise<boolean>;
/**
* Whether the text is expanded.
*/
isExpanded(): Promise<boolean>;
}