feat: add in-app user help

This commit is contained in:
Repinoid
2026-10-25 18:01:55 +03:00
parent 1f8e00e4f9
commit e0130a2baf
4 changed files with 144 additions and 5 deletions
+11
View File
@@ -62,3 +62,14 @@ def test_live_scripts_are_not_collected_as_network_tests():
assert "pytestmark = pytest.mark.skip" in smoke
assert "operation_id(sid, \"create\"" in user_simulation
assert "create_op[\"svcOperationId\"]" in smoke
def test_help_view_is_reachable_and_covers_core_workflows():
template_path = Path(__file__).resolve().parents[1] / "site" / "templates" / "index.html"
content = template_path.read_text(encoding="utf-8")
assert 'data-view="help-view" onclick="switchView(\'help-view\')"' in content
assert 'id="view-help-view"' in content
for section_id in ("help-start", "help-console", "help-scenarios", "help-history", "help-logs", "help-terms"):
assert f'id="{section_id}"' in content
assert "Последние 25 операций" in content