( tableTitle: string, rowId: string, actionTitle: string, index: number = 0, )
| 56 | }; |
| 57 | |
| 58 | const getCellAction = ( |
| 59 | tableTitle: string, |
| 60 | rowId: string, |
| 61 | actionTitle: string, |
| 62 | index: number = 0, |
| 63 | ): HTMLElement => { |
| 64 | const row = getDetails(tableTitle) |
| 65 | .querySelector(`th[title="${rowId}"]`) |
| 66 | ?.closest('tr'); |
| 67 | expect(row).not.toBeNull(); |
| 68 | const actions = row?.querySelectorAll(`img[title="${actionTitle}"]`); |
| 69 | expect(actions?.[index]).not.toBeNull(); |
| 70 | return actions?.[index] as HTMLElement; |
| 71 | }; |
| 72 | |
| 73 | const NO_PROVIDER_MESSAGE = |
| 74 | 'There are no Stores or other objects to inspect. Make sure you placed ' + |
no test coverage detected
searching dependent graphs…