From 5bf16a2932ddb32d6393fabc00163e0183f2700b Mon Sep 17 00:00:00 2001 From: Ethan James Date: Tue, 16 Jun 2026 12:49:13 -0700 Subject: [PATCH 1/5] Add browserstack iOS test --- src/e2e/iOS/__tests__/caret.ts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/e2e/iOS/__tests__/caret.ts b/src/e2e/iOS/__tests__/caret.ts index 29e773dc8f0..51ea8c7170e 100644 --- a/src/e2e/iOS/__tests__/caret.ts +++ b/src/e2e/iOS/__tests__/caret.ts @@ -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: 33.75 }) + + await clickThought('Hello') + + const selectionTextContent = await getSelection().focusNode?.textContent + expect(selectionTextContent).toBe('Hello') + }) }) From 8f7fc15f075d9eb71d15d94e758f29e022969f69 Mon Sep 17 00:00:00 2001 From: Ethan James Date: Tue, 16 Jun 2026 13:10:06 -0700 Subject: [PATCH 2/5] Move tap down --- src/e2e/iOS/__tests__/caret.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/e2e/iOS/__tests__/caret.ts b/src/e2e/iOS/__tests__/caret.ts index 51ea8c7170e..9643b66c200 100644 --- a/src/e2e/iOS/__tests__/caret.ts +++ b/src/e2e/iOS/__tests__/caret.ts @@ -268,7 +268,7 @@ describe('Caret', () => { await clickThought('Hello') const editableNodeHandleWorld = await waitForEditable('World') - await tap(editableNodeHandleWorld, { horizontalTapLine: 'right', y: 33.75 }) + await tap(editableNodeHandleWorld, { horizontalTapLine: 'right', y: 36 }) await clickThought('Hello') From dea61ecb8ebba4c5e5a1b19683ed5450f8815dad Mon Sep 17 00:00:00 2001 From: Ethan James Date: Tue, 16 Jun 2026 13:16:09 -0700 Subject: [PATCH 3/5] Move tap down --- src/e2e/iOS/__tests__/caret.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/e2e/iOS/__tests__/caret.ts b/src/e2e/iOS/__tests__/caret.ts index 9643b66c200..607ffbae58c 100644 --- a/src/e2e/iOS/__tests__/caret.ts +++ b/src/e2e/iOS/__tests__/caret.ts @@ -268,7 +268,7 @@ describe('Caret', () => { await clickThought('Hello') const editableNodeHandleWorld = await waitForEditable('World') - await tap(editableNodeHandleWorld, { horizontalTapLine: 'right', y: 36 }) + await tap(editableNodeHandleWorld, { horizontalTapLine: 'right', y: 40 }) await clickThought('Hello') From 6cf056f3480e29e381110cee2de41f30f954b847 Mon Sep 17 00:00:00 2001 From: Ethan James Date: Tue, 16 Jun 2026 13:22:08 -0700 Subject: [PATCH 4/5] Move tap down --- src/e2e/iOS/__tests__/caret.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/e2e/iOS/__tests__/caret.ts b/src/e2e/iOS/__tests__/caret.ts index 607ffbae58c..132d801279b 100644 --- a/src/e2e/iOS/__tests__/caret.ts +++ b/src/e2e/iOS/__tests__/caret.ts @@ -268,7 +268,7 @@ describe('Caret', () => { await clickThought('Hello') const editableNodeHandleWorld = await waitForEditable('World') - await tap(editableNodeHandleWorld, { horizontalTapLine: 'right', y: 40 }) + await tap(editableNodeHandleWorld, { horizontalTapLine: 'right', y: 44 }) await clickThought('Hello') From e3d36d04c083fe3de67c79053840ea1ba246b091 Mon Sep 17 00:00:00 2001 From: Ethan James Date: Tue, 16 Jun 2026 13:27:35 -0700 Subject: [PATCH 5/5] Move tap down way too far --- src/e2e/iOS/__tests__/caret.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/e2e/iOS/__tests__/caret.ts b/src/e2e/iOS/__tests__/caret.ts index 132d801279b..df7870a4496 100644 --- a/src/e2e/iOS/__tests__/caret.ts +++ b/src/e2e/iOS/__tests__/caret.ts @@ -268,7 +268,7 @@ describe('Caret', () => { await clickThought('Hello') const editableNodeHandleWorld = await waitForEditable('World') - await tap(editableNodeHandleWorld, { horizontalTapLine: 'right', y: 44 }) + await tap(editableNodeHandleWorld, { horizontalTapLine: 'right', y: 200 }) await clickThought('Hello')