(title: string, actionTitle: string)
| 18 | }; |
| 19 | |
| 20 | const getSummaryAction = (title: string, actionTitle: string): HTMLElement => { |
| 21 | const summary = screen.getByText(title).closest('summary'); |
| 22 | expect(summary).not.toBeNull(); |
| 23 | const action = summary?.querySelector(`img[title="${actionTitle}"]`); |
| 24 | expect(action).not.toBeNull(); |
| 25 | return action as HTMLElement; |
| 26 | }; |
| 27 | |
| 28 | const getDetailsAction = (title: string, actionTitle: string): HTMLElement => { |
| 29 | const action = getDetails(title).querySelector(`img[title="${actionTitle}"]`); |
no outgoing calls
no test coverage detected
searching dependent graphs…