fix(orion): compact validation result and signature layout
This commit is contained in:
parent
e9e46f2cb4
commit
9a90a4938e
3 changed files with 41 additions and 21 deletions
|
|
@ -920,6 +920,10 @@ def test_orion_result_boxes_render_on_cover_summary_and_results(tmp_path):
|
|||
assert html.count("VALIDIERUNGSERGEBNIS") >= 3
|
||||
assert "BESTANDEN MIT AUFLAGEN" in html
|
||||
assert "Bestanden mit Auflagen" in html
|
||||
assert 'class="cover-closing"' in html
|
||||
assert 'class="signature-block"' in html
|
||||
assert "Unterschrift technische Validierung" in html
|
||||
assert "Unterschrift Auftraggeber" not in html
|
||||
assert html.index('id="cover"') < html.index("BESTANDEN MIT AUFLAGEN")
|
||||
assert html.index('id="summary"') < html.index("Bestanden mit Auflagen")
|
||||
assert html.index('id="results"') < html.rindex("Bestanden mit Auflagen")
|
||||
|
|
@ -929,6 +933,8 @@ def test_orion_result_box_css_prevents_page_breaks():
|
|||
css = Path("app/modules/orion/templates/report.css").read_text(encoding="utf-8")
|
||||
|
||||
assert ".result-box" in css
|
||||
assert ".cover-closing" in css
|
||||
assert ".signature-block" in css
|
||||
assert "break-inside: avoid" in css
|
||||
assert "page-break-inside: avoid" in css
|
||||
assert "#EAF5EE" in css
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue