Repository navigation
Declare the tab scroller in the diff pinning test - #3732
Closed
leaf-agent wants to merge 1 commit into
Closed
leaf-agent wants to merge 1 commit into
leaf-agent wants to merge 1 commit into
Conversation
Collaborator
Author
|
Closing this proposal because it moves the scroll surface inside the tab and stops testing the original behavior: a page-styled |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
mainwithgap: 47in 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.