Repository navigation
test: declare the bound value reactive in two projected-data test widgets - #6963
Merged
Merged
Conversation
…gets #6936 made a LeafElement class declare each bound input as a Lit reactive property before a set of it redraws the widget. The inline lf-feed and data-reader modules in test_projected_data.py read this.value in render() without declaring it, so a later data set never redrew them. They now declare `static properties = { value: { attribute: false } }`, as the shipped widgets #6936 updated do. Refs #6960
This was referenced Nov 24, 2026
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.
#6936 changed
LeafElementso that a class redraws on a bound input only when it declares that input as a Lit reactive property (static properties = { value: { attribute: false } },module-authoring.md, "Drawing what a widget reads"). It updated the shipped widgets, but not the two inline test modules intest_projected_data.py. Both readthis.valueinrender()without the declaration, so aleaf data setafter the first draw reached the element but never redrew it. As a result,test_a_comment_on_an_identified_datum_follows_the_subject_across_replacementsnever saw rowa-2, andtest_data_consumers_clear_and_recover_across_contract_only_rebindingskept["same bytes"]after the rebind. The second test's teardown also reported the stale draw's contract error.Both modules now declare the property. The product code isn't changed: the tests drift from a contract #6936 changed on purpose.
Both tests fail on
mainat77da815d6and pass on this branch, rebased on7da7a6a71. Bisecting8bbb4ee1c..4660b588eput the break at9aa6fdcd2(#6936): they pass at its parente9c4cc6bb.The same
cirun had two more errors that bisect to #6936. Both are unchanged-write findings:selectedonlf-optionintest_one_shared_added_option_has_one_action_payload_across_tabs, andtabindexon the file editor's CodeMirror content intest_a_reload_that_loses_a_saves_answer_keeps_the_typing_after_it. They are product-side redundant writes, so this PR leaves them to their own issue.Refs #6960 — automated triage