(element: HTMLElement | null)
| 30 | } |
| 31 | |
| 32 | async function click(element: HTMLElement | null): Promise<void> { |
| 33 | expect(element).not.toBeNull(); |
| 34 | await act(async () => element?.click()); |
| 35 | } |
| 36 | |
| 37 | function button(label: string): HTMLButtonElement | null { |
| 38 | return [...container.querySelectorAll('button')].find(node => node.textContent?.includes(label)) ?? null; |
no test coverage detected