import {MatTableHarness} from '@angular/material/table/testing';
MatTableHarness
extends
ComponentHarness
Harness for interacting with a standard mat-table in tests.
async
getCellTextByColumnName
|
|
---|---|
Gets the text inside the entire table organized by columns. |
|
Returns | |
Promise<MatTableHarnessColumnsText>
|
|
async
getCellTextByIndex
|
|
---|---|
Gets the text inside the entire table organized by rows. |
|
Returns | |
Promise<string[][]>
|
|
async
getFooterRows
|
|
---|---|
Gets all of the footer rows in a table. |
|
Parameters | |
filter RowHarnessFilters = {}
|
|
Returns | |
Promise<MatFooterRowHarness[]>
|
|
async
getHeaderRows
|
|
---|---|
Gets all of the header rows in a table. |
|
Parameters | |
filter RowHarnessFilters = {}
|
|
Returns | |
Promise<MatHeaderRowHarness[]>
|
|
async
getRows
|
|
---|---|
Gets all of the regular data rows in a table. |
|
Parameters | |
filter RowHarnessFilters = {}
|
|
Returns | |
Promise<MatRowHarness[]>
|
|
async
host
|
|
---|---|
Gets a |
|
Returns | |
Promise<TestElement>
|
|
MatRowHarness
extends
ComponentHarness
Harness for interacting with a standard Angular Material table row.
async
getCellTextByColumnName
|
|
---|---|
Gets the text inside the row organized by columns. |
|
Returns | |
Promise<MatRowHarnessColumnsText>
|
|
async
getCellTextByIndex
|
|
---|---|
Gets the text of the cells in the row. |
|
Parameters | |
filter CellHarnessFilters = {}
|
|
Returns | |
Promise<string[]>
|
|
async
getCells
|
|
---|---|
Gets a list of |
|
Parameters | |
filter CellHarnessFilters = {}
|
|
Returns | |
Promise<MatCellHarness[]>
|
|
async
host
|
|
---|---|
Gets a |
|
Returns | |
Promise<TestElement>
|
|
MatHeaderRowHarness
extends
ComponentHarness
Harness for interacting with a standard Angular Material table header row.
async
getCellTextByColumnName
|
|
---|---|
Gets the text inside the header row organized by columns. |
|
Returns | |
Promise<MatRowHarnessColumnsText>
|
|
async
getCellTextByIndex
|
|
---|---|
Gets the text of the cells in the header row. |
|
Parameters | |
filter CellHarnessFilters = {}
|
|
Returns | |
Promise<string[]>
|
|
async
getCells
|
|
---|---|
Gets a list of |
|
Parameters | |
filter CellHarnessFilters = {}
|
|
Returns | |
Promise<MatHeaderCellHarness[]>
|
|
async
host
|
|
---|---|
Gets a |
|
Returns | |
Promise<TestElement>
|
|
MatFooterRowHarness
extends
ComponentHarness
Harness for interacting with a standard Angular Material table footer row.
async
getCellTextByColumnName
|
|
---|---|
Gets the text inside the footer row organized by columns. |
|
Returns | |
Promise<MatRowHarnessColumnsText>
|
|
async
getCellTextByIndex
|
|
---|---|
Gets the text of the cells in the footer row. |
|
Parameters | |
filter CellHarnessFilters = {}
|
|
Returns | |
Promise<string[]>
|
|
async
getCells
|
|
---|---|
Gets a list of |
|
Parameters | |
filter CellHarnessFilters = {}
|
|
Returns | |
Promise<MatFooterCellHarness[]>
|
|
async
host
|
|
---|---|
Gets a |
|
Returns | |
Promise<TestElement>
|
|
MatCellHarness
extends
ComponentHarness
Harness for interacting with a standard Angular Material table cell.
async
getColumnName
|
|
---|---|
Gets the name of the column that the cell belongs to. |
|
Returns | |
Promise<string>
|
|
async
getText
|
|
---|---|
Gets the cell's text. |
|
Returns | |
Promise<string>
|
|
async
host
|
|
---|---|
Gets a |
|
Returns | |
Promise<TestElement>
|
|
MatHeaderCellHarness
extends
MatCellHarness
Harness for interacting with a standard Angular Material table header cell.
async
getColumnName
|
|
---|---|
Gets the name of the column that the cell belongs to. |
|
Returns | |
Promise<string>
|
|
async
getText
|
|
---|---|
Gets the cell's text. |
|
Returns | |
Promise<string>
|
|
async
host
|
|
---|---|
Gets a |
|
Returns | |
Promise<TestElement>
|
|
MatFooterCellHarness
extends
MatCellHarness
Harness for interacting with a standard Angular Material table footer cell.
async
getColumnName
|
|
---|---|
Gets the name of the column that the cell belongs to. |
|
Returns | |
Promise<string>
|
|
async
getText
|
|
---|---|
Gets the cell's text. |
|
Returns | |
Promise<string>
|
|
async
host
|
|
---|---|
Gets a |
|
Returns | |
Promise<TestElement>
|
|
MatTableHarnessColumnsText
Text extracted from a table organized by columns.
__index | |
---|---|
Parameters | |
columnName string
|
|
Returns | |
{
text: string[];
headerText: string[];
footerText: string[];
}
|
|
MatRowHarnessColumnsText
Text extracted from a table row organized by columns.
__index | |
---|---|
Parameters | |
columnName string
|
|
Returns | |
string
|
|
CellHarnessFilters
A set of criteria that can be used to filter a list of cell harness instances.
Name | Description |
---|---|
|
Only find instances whose text matches the given value. |
RowHarnessFilters
A set of criteria that can be used to filter a list of row harness instances.
TableHarnessFilters
A set of criteria that can be used to filter a list of table harness instances.