feat: add in-app user help
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user