import {MatPaginatorHarness} from '@angular/material/paginator/testing';
MatPaginatorHarness
Harness for interacting with a standard mat-paginator in tests.
Name | Description |
---|---|
|
Selector used to find paginator instances. |
async
getPageSize
|
|
---|---|
Gets the page size of the paginator. |
|
Returns | |
Promise<number>
|
|
async
getRangeLabel
|
|
---|---|
Gets the text of the range labe of the paginator. |
|
Returns | |
Promise<string>
|
|
async
goToFirstPage
|
|
---|---|
Goes to the first page in the paginator. |
|
Returns | |
Promise<void>
|
Promise that resolves when the action completes. |
async
goToLastPage
|
|
---|---|
Goes to the last page in the paginator. |
|
Returns | |
Promise<void>
|
Promise that resolves when the action completes. |
async
goToNextPage
|
|
---|---|
Goes to the next page in the paginator. |
|
Returns | |
Promise<void>
|
Promise that resolves when the action completes. |
async
goToPreviousPage
|
|
---|---|
Goes to the previous page in the paginator. |
|
Returns | |
Promise<void>
|
Promise that resolves when the action completes. |
async
host
|
|
---|---|
Gets a |
|
Returns | |
Promise<TestElement>
|
|
async
setPageSize
|
|
---|---|
Sets the page size of the paginator. |
|
Parameters | |
size number
|
|
Returns | |
Promise<void>
|
Promise that resolves when the action completes. |
static
with
|
|
---|---|
Gets a |
|
Parameters | |
options PaginatorHarnessFilters = {}
|
|
Returns | |
HarnessPredicate<MatPaginatorHarness>
|
a |
PaginatorHarnessFilters
A set of criteria that can be used to filter a list of MatPaginatorHarness
instances.