Repository navigation
Expect the native-input delivery test to fail while #5642 is decided - #6130
Merged
Merged
Conversation
…cided The test errors at teardown because the shift watch sees the panel's "Comment… c" slide sideways as the row's version notice comes and goes. How the row should share its room between the notice and the hint is still being decided in #5642, so the test is marked `xfail(strict=True)` with that reason. The watch reports its findings when the browser fixture ends, but pytest reads `xfail` against the test's call. Reported at teardown, the same findings would still error the test. So `conftest.py` now asks a test marked `xfail` to fail on its watches' findings as its body returns (`reject_browser_problems` in `render_harness.py`). That takes them from the collector, so teardown reports nothing new. Every other test reports as before, and the watch itself is unchanged. Strict means a run where the hint holds still fails as XPASS, which prompts removing the mark. Checked: the test now reports XFAIL, and a passing test given the same strict mark fails with `[XPASS(strict)]`. > _This was written by Claude Code on behalf of max-sixty_
leaf-agent
approved these changes
Nov 16, 2026
leaf-agent
added a commit
that referenced
this pull request
Nov 16, 2026
…h the held search before Shift+n (#6211) Two tests failed in main's push run [43928743834](https://github.com/max-sixty/leaf/actions/runs/43928743834) (`3bc561561`). This PR fixes both, and changes only the tests. - **`test_code_is_colored_without_a_word_moving`**: the test was stale after #6191. That PR moved a docked `lf-note`'s line indent out of its padding and into `margin-inline-start`, so the card keeps its first-paint size. The card and its words still stand where they did, but the note's border box now starts at the indent: 33.5px from the frame for the example's 4-space line, where the test expected 1px. The test now measures the note's margin box, which is what meets the frame (to within 0.1px, since the indent is a fractional number of `ch`). It fails on `main`. With #6191's `code.css` reverted, the old assertion passes. - **`test_a_step_back_after_the_page_changed_keeps_the_match_it_stood_on`**: the test pressed before the page was ready. It released the held search slices and pressed Shift+n at once. On a slow runner the search was still going, so the step back stayed on the first match and said "Searching", which is the behavior #5910 specified, and the wait for the last match ran out at 120 s. The test now runs the held slices, and any they schedule, until the search ends, and then presses. With `leaf-dev suite flake --cpu-throttle 8`, it failed 4 of 18 copies before this change and 0 of 18 after. It also passed 18 of 18 at throttle 16. The other two failures in that run already have owners: #5642/#6130 and #6139. Not covered here: at throttle 8 to 16, `test_code_is_colored_without_a_word_moving` also fails sometimes at an earlier line. The test reads the `lf-code` token colours before `bucket_key` is split into its own span. CI has not shown this failure, and it happens with or without this change. Refs #3985 — automated triage Co-authored-by: leaf-agent <[email protected]>
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.
test_native_input_survives_progressive_render_revision_and_exporterrors at teardown because the shift watch sees the panel's Comment… c slide sideways as the row's version notice comes and goes. How the row should share its room between the notice and the hint is still being decided in #5642. So this PR marks the testxfail(strict=True)with that reason. Max asked for the xfail.The mark alone doesn't work here. The watch reports its findings when the browser fixture ends, but pytest reads
xfailagainst the test's call, so the same findings would still error the test at teardown.conftest.pynow asks a test markedxfailto fail on its watches' findings as its body returns (reject_browser_problemsinrender_harness.py). That takes the findings from the collector, so teardown reports nothing new. Every other test reports as before, and the watch is unchanged. I chose this over the watch's own per-test opt-out,shifts_unsurveyed, which would let the test pass silently and stop watching it entirely. Because the mark is strict, once the hint holds still the test fails as XPASS, which prompts removing the mark.Tests: the test reports XFAIL. As a control, a passing test given the same strict mark failed with
[XPASS(strict)].