@angular/material
Version:
Angular Material
28 lines (27 loc) • 1.25 kB
TypeScript
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
import { DrawerHarnessFilters } from './drawer-harness-filters';
/** Harness for interacting with a standard mat-drawer in tests. */
export declare class MatDrawerHarness extends ComponentHarness {
/** The selector for the host element of a `MatDrawer` instance. */
static hostSelector: string;
/**
* Gets a `HarnessPredicate` that can be used to search for a `MatDrawerHarness` that meets
* certain criteria.
* @param options Options for filtering which drawer instances are considered a match.
* @return a `HarnessPredicate` configured with the given options.
*/
static with(options?: DrawerHarnessFilters): HarnessPredicate<MatDrawerHarness>;
/** Whether the drawer is open. */
isOpen(): Promise<boolean>;
/** Gets the position of the drawer inside its container. */
getPosition(): Promise<'start' | 'end'>;
/** Gets the mode that the drawer is in. */
getMode(): Promise<'over' | 'push' | 'side'>;
}