(page: Page, displayName: string)
| 32 | } |
| 33 | |
| 34 | export 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 | |
| 43 | export async function expectHookNames(page: Page, names: Array<string>) { |
| 44 | await expect(hookRows(page)).toHaveCount(names.length) |
no test coverage detected