import {MatToolbarHarness} from '@angular/material/toolbar/testing';
MatToolbarHarness
extends
ContentContainerComponentHarness
Harness for interacting with a standard mat-toolbar in tests.
| Name | Description |
|---|---|
|
async
getAllChildLoaders
|
|
|---|---|
| Parameters | |
|
selector S
|
|
| Returns | |
Promise<HarnessLoader[]>
|
|
async
getAllHarnesses
|
|
|---|---|
| Parameters | |
|
query HarnessQuery<T>
|
|
| Returns | |
Promise<T[]>
|
|
async
getChildLoader
|
|
|---|---|
| Parameters | |
|
selector S
|
|
| Returns | |
Promise<HarnessLoader>
|
|
async
getHarness
|
|
|---|---|
| Parameters | |
|
query HarnessQuery<T>
|
|
| Returns | |
Promise<T>
|
|
async
getRowsAsText
|
|
|---|---|
|
Gets the text of each row in the toolbar. |
|
| Returns | |
Promise<string[]>
|
|
async
hasMultipleRows
|
|
|---|---|
|
Whether the toolbar has multiple rows. |
|
| Returns | |
Promise<boolean>
|
|
async
host
|
|
|---|---|
|
Gets a |
|
| Returns | |
Promise<TestElement>
|
|
static
with
|
|
|---|---|
|
Gets a |
|
| Parameters | |
|
options ToolbarHarnessFilters = {}
|
Options for filtering which card instances are considered a match. |
| Returns | |
HarnessPredicate<MatToolbarHarness>
|
a |
ToolbarHarnessFilters
A set of criteria that can be used to filter a list of MatToolbarHarness instances.
| Name | Description |
|---|---|
|
Only find instances whose text matches the given value. |