UNPKG

@angular/material

Version:
28 lines (24 loc) 1.15 kB
import { BaseHarnessFilters } from '@angular/cdk/testing'; import { ContentContainerComponentHarness } from '@angular/cdk/testing'; import { HarnessPredicate } from '@angular/cdk/testing'; export declare interface BottomSheetHarnessFilters extends BaseHarnessFilters { } /** Harness for interacting with a standard MatBottomSheet in tests. */ export declare class MatBottomSheetHarness extends ContentContainerComponentHarness<string> { static hostSelector: string; /** * Gets a `HarnessPredicate` that can be used to search for a bottom sheet with * specific attributes. * @param options Options for narrowing the search. * @return a `HarnessPredicate` configured with the given options. */ static with(options?: BottomSheetHarnessFilters): HarnessPredicate<MatBottomSheetHarness>; /** Gets the value of the bottom sheet's "aria-label" attribute. */ getAriaLabel(): Promise<string | null>; /** * Dismisses the bottom sheet by pressing escape. Note that this method cannot * be used if "disableClose" has been set to true via the config. */ dismiss(): Promise<void>; } export { }