Add HTML5 object breadcrumb
This commit is contained in:
@@ -136,6 +136,7 @@ def test_html5_server_rendered_project_editor(tmp_path: Path):
|
||||
assert "client-js: htmx+sse only" in editor.text
|
||||
assert ".object-actions .button[data-html5-object-action-active" in editor.text
|
||||
assert ".inline-actions" in editor.text
|
||||
assert ".object-breadcrumb" in editor.text
|
||||
assert "Проверить" in editor.text
|
||||
assert "__next" not in editor.text
|
||||
|
||||
@@ -325,11 +326,15 @@ def test_html5_object_context_fragment(tmp_path: Path):
|
||||
assert "mode=impact" in context.text
|
||||
assert "mode=privacy" in context.text
|
||||
assert 'data-html5-object-mode="overview"' in context.text
|
||||
assert "data-html5-object-breadcrumb" in context.text
|
||||
assert "<span>Документ</span>" in context.text
|
||||
assert "<span>ЗаказПокупателя</span>" 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 f"/html5/projects/{project_id}/flowchart?focus=%D0%94%D0%BE%D0%BA%D1%83%D0%BC%D0%B5%D0%BD%D1%82.%D0%97%D0%B0%D0%BA%D0%B0%D0%B7%D0%9F%D0%BE%D0%BA%D1%83%D0%BF%D0%B0%D1%82%D0%B5%D0%BB%D1%8F&depth=1" in context.text
|
||||
assert 'hx-target="[data-html5-source]"' in context.text
|
||||
assert 'hx-target="[data-html5-symbol-detail]"' in context.text
|
||||
assert "Контрагент" in context.text
|
||||
|
||||
Reference in New Issue
Block a user