This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user