Gets the text inside the row organized by columns.
()
| 47 | |
| 48 | /** Gets the text inside the row organized by columns. */ |
| 49 | async getCellTextByColumnName(): Promise<MatRowHarnessColumnsText> { |
| 50 | const output: MatRowHarnessColumnsText = {}; |
| 51 | const cells = await this.getCells(); |
| 52 | const cellsData = await parallel(() => |
| 53 | cells.map(cell => { |
| 54 | return parallel(() => [cell.getColumnName(), cell.getText()]); |
| 55 | }), |
| 56 | ); |
| 57 | cellsData.forEach(([columnName, text]) => (output[columnName] = text)); |
| 58 | return output; |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | /** Harness for interacting with an Angular Material table row. */ |