import { HarnessPredicate } from '@angular/cdk/testing'; import { SkyHarnessFilters, SkyComponentHarness } from '@skyux/core/testing'; import { SkyPageLayoutType } from '@skyux/pages'; /** * A set of criteria that can be used to filter a list of SkyLinkListHarness instances. */ interface SkyLinkListHarnessFilters extends SkyHarnessFilters { } /** * A set of criteria that can be used to filter a list of SkyLinkListItemHarness instances. */ interface SkyLinkListItemHarnessFilters extends SkyHarnessFilters { /** * Only find instances whose text content matches the given value. */ text?: string; } /** * Harness for interacting with a linked list item in tests. */ declare class SkyLinkListItemHarness extends SkyComponentHarness { /** * @internal */ static hostSelector: string; /** * Gets a `HarnessPredicate` that can be used to search for a * `SkyLinkListItemHarness` that meets certain criteria. */ static with(filters: SkyLinkListItemHarnessFilters): HarnessPredicate; /** * Gets the text content of the item. */ getText(): Promise; /** * Clicks the item. */ click(): Promise; } /** * Harness for interacting with a link list component in tests. */ declare class SkyLinkListHarness extends SkyComponentHarness { #private; /** * @internal */ static hostSelector: string; /** * Gets a `HarnessPredicate` that can be used to search for a * `SkyLinkListHarness` that meets certain criteria. */ static with(filters: SkyLinkListHarnessFilters): HarnessPredicate; /** * Gets the link list's heading text. If there are no links, this will return `undefined`. */ getHeadingText(): Promise; /** * Whether the link list is showing a list of links. */ isVisible(): Promise; /** * Gets the status of the wait indicator. */ isWaiting(): Promise; /** * Gets a specific link list item based on the filter criteria. * @param filter The filter criteria. */ getListItem(filter: SkyLinkListItemHarnessFilters): Promise; /** * Gets an array of link list items based on the filter criteria. * If no filter is provided, returns all link list items. * @param filter The optional filter criteria. */ getListItems(filter?: SkyLinkListItemHarnessFilters): Promise; } /** * A set of criteria that can be used to filter a list of SkyNeedsAttentionHarness instances. */ interface SkyNeedsAttentionHarnessFilters extends SkyHarnessFilters { } /** * Harness for interacting with the needs-attention component in tests. */ declare class SkyNeedsAttentionHarness extends SkyComponentHarness { #private; /** * @internal */ static hostSelector: string; /** * Gets a `HarnessPredicate` that can be used to search for a * `SkyNeedsAttentionHarness` that meets certain criteria. */ static with(filters: SkyNeedsAttentionHarnessFilters): HarnessPredicate; /** * Gets the component's heading text. If there are no links, this will return `undefined`. */ getTitle(): Promise; /** * Gets the text from an empty list. If there are items in the list, this will return `undefined`. */ getEmptyListText(): Promise; /** * Whether the link list is showing a list of links. */ hasItems(): Promise; } /** * A set of criteria that can be used to filter a list of SkyNeedsAttentionItemHarness instances. */ interface SkyNeedsAttentionItemHarnessFilters extends SkyHarnessFilters { /** * Only find instances whose text content matches the given value. */ text?: string; } /** * Harness for interacting with a needs attention item in tests. */ declare class SkyNeedsAttentionItemHarness extends SkyComponentHarness { /** * @internal */ static hostSelector: string; /** * Gets a `HarnessPredicate` that can be used to search for a * `SkyNeedsAttentionItemHarness` that meets certain criteria. */ static with(filters: SkyNeedsAttentionItemHarnessFilters): HarnessPredicate; /** * Gets the text content of the item. */ getText(): Promise; /** * Clicks the item. */ click(): Promise; } /** * A set of criteria that can be used to filter a list of SkyActionHubHarness instances. */ interface SkyActionHubHarnessFilters extends SkyHarnessFilters { } /** * Harness for interacting with an action hub component in tests. */ declare class SkyActionHubHarness extends SkyComponentHarness { #private; /** * @internal */ static hostSelector: string; /** * Gets a `HarnessPredicate` that can be used to search for a * `SkyLinkListHarness` that meets certain criteria. */ static with(filters: SkyActionHubHarnessFilters): HarnessPredicate; /** * Gets the title of the action hub. */ getTitle(): Promise; /** * Get the testing harness for the needs attention block. */ getNeedsAttentionBlock(): Promise; /** * Gets a specific needs attention item based on the filter criteria. * @param filter The filter criteria. */ getNeedsAttentionItem(filter: SkyNeedsAttentionItemHarnessFilters): Promise; /** * Gets an array of needs attention items based on the filter criteria. * If no filter is provided, returns all needs attention items. * @param filters The optional filter criteria. */ getNeedsAttentionItems(filters?: SkyNeedsAttentionItemHarnessFilters): Promise; /** * Get the testing harness for the related links block. */ getRelatedLinks(): Promise; /** * Get the testing harness for the recent links block. */ getRecentLinks(): Promise; /** * Get the testing harness for the settings links block. */ getSettingsLinks(): Promise; } /** * A set of criteria that can be used to filter a list of SkyPageHeaderHarness instances. */ interface SkyPageHeaderHarnessFilters extends SkyHarnessFilters { } /** * Harness for interacting with a page header component in tests. */ declare class SkyPageHeaderHarness extends SkyComponentHarness { #private; /** * @internal */ static hostSelector: string; /** * Gets a `HarnessPredicate` that can be used to search for a * `SkyPageHeaderHarness` that meets certain criteria. */ static with(filters: SkyPageHeaderHarnessFilters): HarnessPredicate; /** * Gets the current page title. */ getPageTitle(): Promise; /** * Gets the current page title. */ getParentLinkText(): Promise; } /** * A set of criteria that can be used to filter a list of SkyPageHarness instances. */ interface SkyPageHarnessFilters extends SkyHarnessFilters { } /** * Harness for interacting with a page component in tests. */ declare class SkyPageHarness extends SkyComponentHarness { /** * @internal */ static hostSelector: string; /** * Gets a `HarnessPredicate` that can be used to search for a * `SkyPageHarness` that meets certain criteria. */ static with(filters: SkyPageHarnessFilters): HarnessPredicate; /** * Gets the current layout. */ getLayout(): Promise; /** * Gets the first page header that matches the given filters. * @param filters filters for which page header to return */ getPageHeader(filters?: SkyPageHeaderHarnessFilters): Promise; } export { SkyActionHubHarness, SkyLinkListHarness, SkyLinkListItemHarness, SkyNeedsAttentionHarness, SkyNeedsAttentionItemHarness, SkyPageHarness, SkyPageHeaderHarness }; export type { SkyActionHubHarnessFilters, SkyLinkListHarnessFilters, SkyLinkListItemHarnessFilters, SkyNeedsAttentionHarnessFilters, SkyNeedsAttentionItemHarnessFilters, SkyPageHarnessFilters, SkyPageHeaderHarnessFilters };