Skip to content

fix: post the playground's tune before its choose in the On me answer-words test - #5376

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-5168
Nov 4, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-5168

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

test_an_answered_obligations_words_are_its_widgets_semantic_state fails on main because its fixture still posts the events the playground sent before #4845. That PR made a playground's controls draw the tune in force rather than the latest choose, and the widget's own submit records a tune before it sends choose. The test posted a bare choose, so the controls stayed on Banner and the output never said "strip". It now posts the tune the widget would post, then the choose.

That first failure hid a second stale read. #5318 folded answered On me cards under Done, and a Done card draws its answer in .lf-fp-on-says > .lf-fp-value. The test now unfolds Done with show_done and reads that element, as the neighbouring tests updated in #5318 do.

No product code changes. The behavior the test protects still holds: an answered playground's On me card names the instruction it sent ("Build the strip one."), not the setting its controls show afterwards. The test failed on main with the reported strip assertion and passes with this change (local run on Linux).

Closes #5168 — automated triage

…-words test

#4845 made a playground's controls draw the `tune` in force rather than the
latest `choose`, and the widget's own submit records a tune first. The test
posted a bare `choose`, so the controls stayed on Banner and the output never
said "strip". It now posts the tune the widget would.

The same test also read answered cards before #5318 folded them under Done:
it now unfolds Done (`show_done`) and reads the answer where a Done card
draws it (`.lf-fp-on-says > .lf-fp-value`), as the neighbouring tests do.
The behaviors it protects are unchanged: an answered playground names the
instruction it sent, not what its controls show now.

Closes #5168
@leaf-agent
leaf-agent merged commit ee79d7e into main Nov 4, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-5168 branch November 4, 2026 16:17
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.

Answered playground retains banner instead of selected strip

1 participant