Skip to content

Clarify hidden-thought shim cursor tests - #4976

Draft
marcus-pousette wants to merge 1 commit into
cybersemics:mainfrom
marcus-pousette:test/capture-tree-node-helper
Draft

Clarify hidden-thought shim cursor tests#4976
marcus-pousette wants to merge 1 commit into
cybersemics:mainfrom
marcus-pousette:test/capture-tree-node-helper

Conversation

@marcus-pousette

Copy link
Copy Markdown
Contributor

Follow-up to #4969.

Summary

This is a naming-only test cleanup with no runtime behavior change.

  • Rename getTreeNode to captureTreeNode to make its timing contract explicit.
  • Clarify that the helper captures the outer tree node before autofocus replaces its editable with a height shim.
  • Name the two cursor tests after the hidden shim they click.

The captured outer node remains mounted to preserve layout after its inner [data-editable] is removed. Retaining its handle lets the tests wait for that exact editable to disappear and then verify with a real pointer click that the shim remains a no-op zone.

Verification

  • src/e2e/puppeteer/__tests__/cursor.ts: 8/8 passed
  • yarn lint:tsc --pretty false
  • git diff --check

Co-Authored-By: Codex GPT-5 (unknown context) <noreply@openai.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant