Ver código fonte

goalui bundle asserts the unified subnav contract (goal 41 T11)

The bundle pinned the goal page's pre-T11 inline engine by function
name (goalHighlightSubnav); the sweep replaced it with the shared
initSubnav engine, so the check now asserts the engine call, the
unified .subnav strip and the data-subnav-section regions. Verified
standalone: 142 passed, 0 failed.
saddle-ClankerSaddle 1 dia atrás
pai
commit
19627f166f
1 arquivos alterados com 4 adições e 3 exclusões
  1. 4 3
      test/bundles/goalui.py

+ 4 - 3
test/bundles/goalui.py

@@ -487,9 +487,10 @@ def run(ctx):
               "the strip's verdict is computed from %s" % marker)
     check(goal_page.count("stm-action=\"goal.start\"") >= 2,
           "the primary lifecycle button rides the strip (and the status ladder)")
-    check("goalHighlightSubnav" in goal_page
-          and "statum.afterEvaluate(goalHighlightSubnav)" in goal_page,
-          "the anchor sub-nav rebinds its highlight across statum re-renders")
+    check("window.initSubnav" in goal_page
+          and 'class="subnav"' in goal_page
+          and 'data-subnav-section="goal-sec-narrative"' in goal_page,
+          "the anchor sub-nav runs the shared initSubnav engine (T11 unification)")
     check("goal.current_activity" in goal_page and "Current activity" not in goal_page,
           "the activity lives as ONE muted head line (the card is gone)")
     check(".goal-page .card" in open(os.path.join(REPO, "src/pages/app.css")).read(),