MCPcopy Index your code
hub / github.com/TanStack/ai / selectHook

Function selectHook

testing/e2e/tests/devtools-helpers.ts:34–41  ·  view source on GitHub ↗
(page: Page, displayName: string)

Source from the content-addressed store, hash-verified

32}
33
34export async function selectHook(page: Page, displayName: string) {
35 const row = hookRow(page, displayName)
36 await expect(row).toBeVisible()
37 await row.click()
38 await expect(page.getByTestId('ai-devtools-hook-title')).toHaveText(
39 displayName,
40 )
41}
42
43export async function expectHookNames(page: Page, names: Array<string>) {
44 await expect(hookRows(page)).toHaveCount(names.length)

Calls 1

hookRowFunction · 0.85

Tested by

no test coverage detected