Skip to content

Check nested target hints outside their targets - #2241

Merged
leaf-agent merged 2 commits into
mainfrom
fix/ci-38013241865-hint-indent
Oct 10, 2026
Merged

leaf-agent merged 2 commits into
mainfrom
fix/ci-38013241865-hint-indent

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

#2159 moved Design target hints outside the controls they name and removed ancestry indentation. Two browser checks still expected the nested child hint to step right. Check that both hints stand outside their targets without overlapping, and that the child hint follows its target when layout moves while keeping the same offset.

Both focused cases failed on main before this change and passed afterward: uv run pytest tests/test_render_semantic_selection.py::test_nested_target_hints_show_containment_without_covering_each_other tests/test_render_semantic_selection.py::test_a_nested_target_hint_follows_when_the_nesting_changes -q -n0.

This addresses two failures in main CI run 38013241865.

Design target hints now sit before their target instead of using ancestry indentation. Verify two nested hints remain separate and that the child hint follows its target when layout moves.
max-sixty pushed a commit that referenced this pull request Oct 10, 2026
## Cause

In the 390 px package reader, the Email option starts below its
scrollport. Playwright scrolls it into view before `click()`, but that
synthetic scroll has no trusted input event. The layout shift watcher
therefore flags the margin marker following the reader by 10 px as
unsolicited motion. This reproduces on current `main` and is the sole
Python test error in #2231, #2236, #2241, and #2243.

## Change

Scroll the compact reader with a user wheel gesture before clicking
Email. The case still exercises the native Ask, package presentation,
retained draft, and new conversation.

## Verification

- Before: `uv run pytest
'tests/test_render_application_boundary.py::test_primary_package_reader_retains_native_widgets_drafts_and_creation[390]'
-q -n0 --tb=short` failed at teardown with `lf-margin-marker ... moved
without input by (0, -10)px`.
- After: the same command passes.
- `uv run pytest tests/test_render_application_boundary.py -q -n0
--tb=short`: 46 passed.

Co-authored-by: leaf-agent <[email protected]>
@leaf-agent
leaf-agent merged commit 715c99d into main Oct 10, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/ci-38013241865-hint-indent branch October 10, 2026 15:50
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