Skip to content

Declare the tab scroller in the diff pinning test - #3732

Closed
leaf-agent wants to merge 1 commit into
mainfrom
fix/ci-39930571983-tab-scroll
Closed

leaf-agent wants to merge 1 commit into
mainfrom
fix/ci-39930571983-tab-scroll

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The diff pinning test makes a tab scroll with page CSS, but its scroll surface is undeclared. Since #3673, Reach reads declared scrollers when setting the sticky header slot, so the fixture's diff header stays 47 px below the top. Put the scrollable box inside the tab and mark that box scroll, as the neighboring scroller cases already do. The test still checks the diff under the tab strip and the option card outside the scroller.

The focused case failed on current main with gap: 47 in run 39930571983 and passed after this fixture change: uv run pytest -q tests/browser/widgets/test_diffs.py::test_a_diff_pins_to_its_page_tab_panel_or_past_an_option_card. Refs #3695.

@leaf-agent

Copy link
Copy Markdown
Collaborator Author

Closing this proposal because it moves the scroll surface inside the tab and stops testing the original behavior: a page-styled lf-tab panel scrolling its own diff. The current schema refuses class on lf-tab, so the declared-scroll contract cannot describe that surface. #3695 already records the needed contract decision; this PR should not turn a red coverage check green by changing its subject.

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