Skip to content

Test exported quiet words with a real highlighted code line - #2587

Closed
leaf-agent wants to merge 2 commits into
mainfrom
fix/ci-38244446941-export-quiet-word
Closed

leaf-agent wants to merge 2 commits into
mainfrom
fix/ci-38244446941-export-quiet-word

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

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 declare state. The fixture came from the decorative-widget removal in #2151. This change uses a highlighted lf-code line, whose shipped widget generates the .lf-quiet word, and keeps the exported-file clipping assertion. The test failed on current main before 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).

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.
@leaf-agent

Copy link
Copy Markdown
Collaborator Author

Closed as a duplicate of #2588, which has already landed the export fixture repair on main.

@leaf-agent leaf-agent closed this Oct 12, 2026
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