You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test_a_browser_executes_the_published_capture_with_live_api_routes: application not mounted at teardown since #6920 #7019
tests/journeys/test_live_shell_artifact.py::test_a_browser_executes_the_published_capture_with_live_api_routes[True] and [False] have errored at teardown since #6920 ("Drive a plain custom element as a widget"). The error is http://127.0.0.1:…/versions/v1.html?pin: Error: Leaf application has not been mounted. git bisect run over aa34b6b22..e7d5808f3 on [True] names ce9478170 (#6920). Both cases fail on Linux at current main (c076ce9c9). They failed on Linux test and on test-macos in scheduled run 45378690705. journeys/ doesn't run on pull requests, so #6920's CI never ran them.
The test bodies pass. The error comes from the page's error collector at teardown, which means something on the published capture's pinned page called into the application before it mounted, or without mounting it at all. Undiagnosed beyond the bisect.
Fix opened in #7024. Since #6920, hostDeclaredElements drives declared widgets from early in boot, so the page's own lf-options, which app.js defines, finished its first draw before mountApplication ran. Its widgetMounted call then hit the application facade's invalidateDom, which throws before mount. No document-wide presenter exists before the mount, and the presenters it registers read the document as they find it, so the facade now resolves that early request without work.
Both [True] and [False] reproduced the teardown error on current main and pass with the change. PR CI doesn't run journeys/, so that local run is the evidence for this test. The PR's CI and landing are now with tend-land.
Activity
leaf-agent commentedon Nov 24, 2026
Fix opened in #7024. Since #6920,
hostDeclaredElementsdrives declared widgets from early in boot, so the page's ownlf-options, whichapp.jsdefines, finished its first draw beforemountApplicationran. ItswidgetMountedcall then hit the application facade'sinvalidateDom, which throws before mount. No document-wide presenter exists before the mount, and the presenters it registers read the document as they find it, so the facade now resolves that early request without work.Both
[True]and[False]reproduced the teardown error on currentmainand pass with the change. PR CI doesn't runjourneys/, so that local run is the evidence for this test. The PR's CI and landing are now with tend-land.