Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions src/e2e/iOS/__tests__/caret.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,4 +251,28 @@ describe('Caret', () => {
expect(selectionTextContent).toBe('new')
expect(childrenTexts).toEqual(['foo', 'bar'])
})

it('Tap from one thought to bottom right corner of another thought with collapsed children, then back', async () => {
const importText = `
- Hello
- A
- B
- C
- World
- E
- F
- G`

await newThought()
await paste([''], importText)
await clickThought('Hello')

const editableNodeHandleWorld = await waitForEditable('World')
await tap(editableNodeHandleWorld, { horizontalTapLine: 'right', y: 200 })

await clickThought('Hello')

const selectionTextContent = await getSelection().focusNode?.textContent
expect(selectionTextContent).toBe('Hello')
})
})