(name: string)
| 41 | } |
| 42 | |
| 43 | async function clickButton(name: string) { |
| 44 | const button = await screen.findByRole('button', { |
| 45 | name, |
| 46 | }) |
| 47 | expect(button).toBeInTheDocument() |
| 48 | fireEvent.click(button) |
| 49 | } |
| 50 | |
| 51 | test('when the path params change', async () => { |
| 52 | const mockContextFn = vi.fn() |