Mark active HTML5 object context action
CI / python (push) Has been cancelled
CI / rust (push) Has been cancelled

This commit is contained in:
2026-05-17 01:12:32 +03:00
parent 2a2786bc60
commit 9ff2cf3676
2 changed files with 18 additions and 2 deletions
+3
View File
@@ -324,6 +324,8 @@ def test_html5_object_context_fragment(tmp_path: Path):
assert "mode=privacy" in context.text
assert 'data-html5-object-mode="overview"' in context.text
assert "Object context · overview" in context.text
assert 'data-html5-object-action-active="true"' in context.text
assert 'aria-current="page"' in context.text
assert 'hx-target="[data-html5-object-context]"' in context.text
assert 'hx-target="[data-html5-flowchart]"' in context.text
assert 'hx-target="[data-html5-source]"' in context.text
@@ -371,6 +373,7 @@ def test_html5_object_context_fragment(tmp_path: Path):
assert schema_context.status_code == 200
assert 'data-html5-object-mode="schema"' in schema_context.text
assert "Object context · schema" in schema_context.text
assert 'data-html5-object-action-active="true"' in schema_context.text
assert "Контрагент" in schema_context.text
impact_context = client.get(