UNPKG

@skyux/layout

Version:

This library was generated with [Nx](https://nx.dev).

44 lines (43 loc) 1.83 kB
import { HarnessPredicate } from '@angular/cdk/testing'; import { SkyComponentHarness } from '@skyux/core/testing'; import { SkyToolbarHarnessFilters } from './toolbar-harness-filters'; import { SkyToolbarItemHarness } from './toolbar-item-harness'; import { SkyToolbarItemHarnessFilters } from './toolbar-item-harness-filters'; import { SkyToolbarSectionHarness } from './toolbar-section-harness'; import { SkyToolbarSectionHarnessFilters } from './toolbar-section-harness-filters'; import { SkyToolbarViewActionsHarness } from './toolbar-view-actions-harness'; /** * Harness for interacting with a toolbar component in tests. */ export declare class SkyToolbarHarness extends SkyComponentHarness { #private; /** * @internal */ static hostSelector: string; /** * Gets a `HarnessPredicate` that can be used to search for a * `SkyToolbarHarness` that meets certain criteria. */ static with(filters: SkyToolbarHarnessFilters): HarnessPredicate<SkyToolbarHarness>; /** * Gets a harness for a specific toolbar item that meets certain criteria. */ getItem(filter: SkyToolbarItemHarnessFilters): Promise<SkyToolbarItemHarness>; /** * Gets an array of all toolbar items. */ getItems(filters?: SkyToolbarItemHarnessFilters): Promise<SkyToolbarItemHarness[]>; /** * Gets a harness for a specific toolbar section that meets certain criteria. */ getSection(filter: SkyToolbarSectionHarnessFilters): Promise<SkyToolbarSectionHarness>; /** * Gets an array of all toolbar sections. */ getSections(filters?: SkyToolbarSectionHarnessFilters): Promise<SkyToolbarSectionHarness[]>; /** * Gets the harness to interact with the toolbar's view actions. */ getViewActions(): Promise<SkyToolbarViewActionsHarness>; }