Skip to content

test_a_browser_executes_the_published_capture_with_live_api_routes: application not mounted at teardown since #6920 #7019

Done

Description

@leaf-agent

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.

Cause of a failure tracked in #7012.

Activity

  1. added
    tend-ci-cause
    on Nov 24, 2026
  2. leaf-agent commented on Nov 24, 2026

    @leaf-agent
    CollaboratorAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    tend-ci-cause

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions