fix(ui): move widget and page documentation into headings
Verified with the coordinated workspace changes by devkit full run 2026-09-08T225814-186389-0000-3e3ed7cd (all seven phases passed). This shared UI pass does not mark the individual module reviews complete.
This commit is contained in:
@@ -1,12 +1,23 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import unittest
|
||||
from pathlib import Path
|
||||
|
||||
from govoplan_core.core.modules import ModuleManifest
|
||||
from govoplan_scheduling.backend.manifest import get_manifest
|
||||
|
||||
|
||||
class SchedulingManifestTests(unittest.TestCase):
|
||||
def test_widget_documentation_is_contributed_for_its_dashboard_title(self) -> None:
|
||||
root = Path(__file__).resolve().parents[1]
|
||||
contribution = (root / "webui/src/module.ts").read_text(encoding="utf-8")
|
||||
widget = (root / "webui/src/features/scheduling/SchedulingRequestsWidget.tsx").read_text(encoding="utf-8")
|
||||
self.assertIn(
|
||||
'documentation: { topicId: "scheduling.find-and-decide-meeting-time", documentationType: "user" }',
|
||||
contribution,
|
||||
)
|
||||
self.assertNotIn("DocumentationHelpLink", widget)
|
||||
|
||||
def test_all_static_topics_have_complete_german_content(self) -> None:
|
||||
manifest = get_manifest()
|
||||
for topic in manifest.documentation:
|
||||
|
||||
Reference in New Issue
Block a user