( tableTitle: string, rowId: string, actionTitle: string, )
| 35 | }; |
| 36 | |
| 37 | const getRowAction = ( |
| 38 | tableTitle: string, |
| 39 | rowId: string, |
| 40 | actionTitle: string, |
| 41 | ): HTMLElement => { |
| 42 | const row = getDetails(tableTitle) |
| 43 | .querySelector(`th[title="${rowId}"]`) |
| 44 | ?.closest('tr'); |
| 45 | expect(row).not.toBeNull(); |
| 46 | const action = row?.querySelector(`img[title="${actionTitle}"]`); |
| 47 | expect(action).not.toBeNull(); |
| 48 | return action as HTMLElement; |
| 49 | }; |
| 50 | |
| 51 | const getValueAction = (valueId: string, actionTitle: string): HTMLElement => { |
| 52 | const row = getDetails('Values') |
no test coverage detected
searching dependent graphs…