Repository navigation
fix: post the playground's tune before its choose in the On me answer-words test - #5376
Merged
Merged
Conversation
…-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
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_an_answered_obligations_words_are_its_widgets_semantic_statefails on main because its fixture still posts the events the playground sent before #4845. That PR made a playground's controls draw thetunein force rather than the latestchoose, and the widget's own submit records atunebefore it sendschoose. The test posted a barechoose, so the controls stayed on Banner and the output never said "strip". It now posts thetunethe widget would post, then thechoose.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 withshow_doneand 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
stripassertion and passes with this change (local run on Linux).Closes #5168 — automated triage