MCPcopy
hub / github.com/TanStack/router / clickButton

Function clickButton

packages/solid-router/tests/routeContext.test.tsx:43–49  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

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()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected