Repository navigation
Finish the Decision-to-Ask rename in the Ask arrival test's measurements - #315
Merged
Merged
Conversation
Both page.evaluate blocks in test_an_ask_arrival_starts_with_the_context_that_frames_it were left half-renamed: the first declares 'const ask' and reads 'decision.top', the second declares 'const decision' and reads 'ask.top'. Either way the block throws a ReferenceError before any assertion runs.
This was referenced Sep 6, 2026
Merged
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.
Problem
main's nightly suite fails on run 33995234828 withPage.evaluate: ReferenceError: decision is not definedintests/test_render_widgets.py::test_an_ask_arrival_starts_with_the_context_that_frames_it. 3bbacba's Decision-to-Ask rename reached bothpage.evaluateblocks in that test but finished neither: the first declaresconst askand still readsdecision.top, the second still declaresconst decisionand readsask.top. JavaScript inside a Python string gets no lint, so each block throws before any assertion in it runs and the test says nothing about the arrival it names.Solution
Name the rectangle
askon both sides of both blocks, which is the rename the commit intended. The fault is local to this one test — a scan of every embedded() => {...}block acrosstests/andskills/for free identifiers turns up no other half-renamed pair.Testing
Reproduced first: before the fix the same selection fails with
ReferenceError: decision is not defined, and after fixing only the first block it fails withReferenceError: ask is not definedfrom the second — so both edits are load-bearing.The other failure on this run is separate and older
The run also fails
tests/test_render_controls.py::test_every_ring_the_layer_draws_is_shown_whole_somewhere_in_the_corpusonmedia (.lf-media-open:is(:focus-visible, .lf-focus-visible)). That one predates this commit: it first reddened on run 33993671859 at 372a97c ("Support pasted images in threads"), which introduced.lf-media-open, and the ci-fix run triggered by that failure is still in flight. Left out of this PR so the two don't collide.Automated fix for failed run