Skip to content

Test compact package reader with a user scroll - #2246

Merged
max-sixty merged 1 commit into
mainfrom
fix/ci-38013241865-margin-shift
Oct 10, 2026
Merged

max-sixty merged 1 commit into
mainfrom
fix/ci-38013241865-margin-shift

Conversation

@leaf-agent

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

Copy link
Copy Markdown
Collaborator

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.

The mobile package reader clips the Email option. Playwright auto-scrolls it before click without trusted input, so the shift watcher reports the margin marker following that scroll as unsolicited motion. Scroll the reader with a wheel gesture before activating the option; the test still checks native Ask admission, retained drafts, and package-created conversations.
@max-sixty
max-sixty merged commit 81b60d3 into main Oct 10, 2026
5 checks passed
@max-sixty
max-sixty deleted the fix/ci-38013241865-margin-shift branch October 10, 2026 07:42
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.

2 participants