import {MatDrawerHarness} from '@angular/material/sidenav/testing';
MatDrawerHarness
extends
ComponentHarness
Harness for interacting with a standard mat-drawer in tests.
async
getMode
|
|
|---|---|
|
Gets the mode that the drawer is in. |
|
| Returns | |
Promise<'over' | 'push' | 'side'>
|
|
async
getPosition
|
|
|---|---|
|
Gets the position of the drawer inside its container. |
|
| Returns | |
Promise<'start' | 'end'>
|
|
async
host
|
|
|---|---|
|
Gets a |
|
| Returns | |
Promise<TestElement>
|
|
async
isOpen
|
|
|---|---|
|
Whether the drawer is open. |
|
| Returns | |
Promise<boolean>
|
|
MatSidenavHarness
extends
MatDrawerHarness
Harness for interacting with a standard mat-sidenav in tests.
async
getMode
|
|
|---|---|
|
Gets the mode that the drawer is in. |
|
| Returns | |
Promise<'over' | 'push' | 'side'>
|
|
async
getPosition
|
|
|---|---|
|
Gets the position of the drawer inside its container. |
|
| Returns | |
Promise<'start' | 'end'>
|
|
async
host
|
|
|---|---|
|
Gets a |
|
| Returns | |
Promise<TestElement>
|
|
async
isFixedInViewport
|
|
|---|---|
|
Whether the sidenav is fixed in the viewport. |
|
| Returns | |
Promise<boolean>
|
|
async
isOpen
|
|
|---|---|
|
Whether the drawer is open. |
|
| Returns | |
Promise<boolean>
|
|
DrawerHarnessFilters
A set of criteria that can be used to filter a list of MatDrawerHarness instances.
| Name | Description |
|---|---|
|
Only find instances whose side is the given value. |