Przeglądaj źródła

Goals bundle: assert the current plain nav markup

test/bundles/goals.py:151 pinned the nav-goal accent class and the target emoji that commit 5eaab31 removed from the nav; the check now asserts the served nav carries the plain Goals link. Icon coverage stays on the /goals list-page check that follows.
clanker 1 miesiąc temu
rodzic
commit
d069aa9c01
1 zmienionych plików z 5 dodań i 4 usunięć
  1. 5 4
      test/bundles/goals.py

+ 5 - 4
test/bundles/goals.py

@@ -144,12 +144,13 @@ def run(ctx):
           "the goal blocks list carries the pending plan block")
           "the goal blocks list carries the pending plan block")
 
 
     print("== feedback: goal visual identity ==")
     print("== feedback: goal visual identity ==")
-    # A goal never reads as a task at a glance: marked nav entry,
-    # iconed list page, and the dashboard pile's goal cards carry
+    # A goal never reads as a task at a glance: the nav carries the
+    # plain Goals entry (5eaab31 dropped the nav-goal accent), the
+    # list page is iconed, and the dashboard pile's goal cards carry
     # their own accent styling.
     # their own accent styling.
     home_html = http_get_page(auth, "/")
     home_html = http_get_page(auth, "/")
-    check('class="nav-goal"' in home_html and "🎯" in home_html,
-          "the nav carries the marked 🎯 Goals entry beside Tasks")
+    check('<a href="/goals">Goals</a>' in home_html,
+          "the nav carries the Goals entry beside Tasks")
     check(any(p["item_type"] == "goal" for p in
     check(any(p["item_type"] == "goal" for p in
               slot_public(auth, "/", "dashboard")["pinned"]),
               slot_public(auth, "/", "dashboard")["pinned"]),
           "the goal's pending block pins onto the dashboard pile")
           "the goal's pending block pins onto the dashboard pile")