Mark active HTML5 object context action
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user