test(editor): fix typecheck of the history entry and dialog helpers

This commit is contained in:
bchanot committed 2026-11-13 19:54:06 +01:00
1 parent af300de04c
commit e2d020bd3d
3 files changed
+6 -2

No files matched your search

@@ -89,7 +89,9 @@ test.describe('finding dialog', () => {
rows: await rows(page).count(),
y: await page.evaluate(() => window.scrollY),
}
await row.focus({ preventScroll: true })
await row.evaluate((element: HTMLElement) =>
element.focus({ preventScroll: true }),
)
await page.keyboard.press('Enter')
await expect(dialog(page)).toBeVisible()
await page.keyboard.press('Escape')