some improvements
Some checks failed
CI / check (push) Has been cancelled

This commit is contained in:
2026-09-11 11:01:57 +02:00
parent 1ebb9a0e74
commit f6a551d7c4
8 changed files with 108 additions and 63 deletions

View File

@@ -52,7 +52,7 @@ describe('a change that only removes a line', () => {
expect(c.querySelector('.ce-gutter .chg')).toBeNull()
})
it('hands the removed line to the hover panel', async () => {
it('hands the removed line to the picked panel', async () => {
const c = await openRow()
const scroll = await waitFor(() => {
const el = c.querySelector<HTMLElement>('.ce-scroll')
@@ -60,7 +60,7 @@ describe('a change that only removes a line', () => {
return el
})
// 'tail' took the place of the removed line, and sits on line 2.
fireEvent.mouseMove(scroll, { clientY: 10 + 20 + 5 })
fireEvent.click(scroll, { clientY: 10 + 20 + 5 })
const peek = await waitFor(() => {
const p = c.querySelector<HTMLElement>('.peek')
if (!p) throw new Error('peek not ready')