import {MatSortHarness} from '@angular/material/sort/testing';
MatSortHarness
extends
ComponentHarness
Harness for interacting with a standard mat-sort
in tests.
async
getActiveHeader
|
|
---|---|
Gets the selected header in the |
|
Returns | |
Promise<MatSortHeaderHarness | null>
|
|
async
getSortHeaders
|
|
---|---|
Gets all of the sort headers in the |
|
Parameters | |
filter SortHeaderHarnessFilters = {}
|
|
Returns | |
Promise<MatSortHeaderHarness[]>
|
|
async
host
|
|
---|---|
Gets a |
|
Returns | |
Promise<TestElement>
|
|
MatSortHeaderHarness
extends
ComponentHarness
Harness for interacting with a standard Angular Material sort header in tests.
async
click
|
|
---|---|
Clicks the header to change its sorting direction. Only works if the header is enabled. |
|
Returns | |
Promise<void>
|
Promise that resolves when the action completes. |
async
getAriaLabel
|
|
---|---|
Gets the aria-label of the sort header. |
|
Returns | |
Promise<string | null>
|
|
async
getLabel
|
|
---|---|
Gets the label of the sort header. |
|
Returns | |
Promise<string>
|
|
async
getSortDirection
|
|
---|---|
Gets the sorting direction of the header. |
|
Returns | |
Promise<SortDirection>
|
|
async
host
|
|
---|---|
Gets a |
|
Returns | |
Promise<TestElement>
|
|
async
isActive
|
|
---|---|
Gets whether the sort header is currently being sorted by. |
|
Returns | |
Promise<boolean>
|
|
async
isDisabled
|
|
---|---|
Whether the sort header is disabled. |
|
Returns | |
Promise<boolean>
|
|
SortHarnessFilters
SortHeaderHarnessFilters
Name | Description |
---|---|
|
|
|