Repository navigation
Test exported quiet words with a real highlighted code line - #2587
Closed
leaf-agent wants to merge 2 commits into
Closed
leaf-agent wants to merge 2 commits into
leaf-agent wants to merge 2 commits into
Conversation
The old fixture declared lf-reading after that widget was retired and still passed an undeclared state property, so page check refused the test page before export. Use lf-code's highlighted line to produce the quiet word that the export clipping assertion protects.
Collaborator
Author
|
Closed as a duplicate of #2588, which has already landed the export fixture repair on |
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 failed main run could not reach the export clipping assertion: the test page declared
lf-reading state="done", but that module-free test widget does not declarestate. The fixture came from the decorative-widget removal in #2151. This change uses a highlightedlf-codeline, whose shipped widget generates the.lf-quietword, and keeps the exported-file clipping assertion. The test failed on currentmainbefore this change and passed after it.The run's other failure, the visual-part reaction Space-key test, was fixed by #2582; its test also passes on current
main.Verification:
uv run pytest tests/test_render_export.py::test_an_export_keeps_its_quiet_words_off_screen tests/test_render_reactions.py::test_a_reaction_on_a_visual_part_names_that_part -q -n0(2 passed).