Skip to content

Follow banner focus after sending a page comment - #2231

Merged
leaf-agent merged 3 commits into
mainfrom
fix/ci-38013241865-banner-cue
Oct 10, 2026
Merged

leaf-agent merged 3 commits into
mainfrom
fix/ci-38013241865-banner-cue

Conversation

@leaf-agent

@leaf-agent leaf-agent commented Oct 10, 2026 •

Copy link
Copy Markdown
Collaborator

#2181 made sending a page comment close the composer popover and return focus to its banner Comment control. Two browser journeys still expected the popover to remain visible and focused. Update their focus handoff checks. The color-cue variants continue to verify the Threads animation and final surface color in Chromium and Firefox; the shortcuts journey still verifies that a disabled quick-key setting leaves commands available through the reference.

All three focused cases failed on main before this change and passed afterward: uv run pytest tests/test_render_navigation.py::test_quick_shortcuts_can_be_disabled_without_withdrawing_commands tests/test_render_navigation.py::test_color_cues_fade_to_the_live_surface[banner-browser] tests/test_render_navigation.py::test_color_cues_fade_to_the_live_surface[banner-firefox_browser] -q -n0.

This addresses three failures in main CI run 38013241865.

Sending the page comment closes its popover and returns focus to the banner Comment control. Preserve the color-cue assertion on the Threads control while checking the actual focus handoff.
The command reference still opens and sends a page comment with quick shortcuts off; after sending, the popover closes and focus returns to the banner Comment control.
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 e80cfe9 into main Oct 10, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/ci-38013241865-banner-cue 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