fix: German quote style U+201C instead of U+201D (A11-T1)
Corrected closing quotation mark in hx-confirm attribute and test assertions from U+201D (RIGHT DOUBLE QUOTATION MARK) to U+201C (LEFT DOUBLE QUOTATION MARK), matching German typographic convention („...") and house style (line 114). Changes by code point: - finance/app/templates/szenarien.html line 17: 1 × U+201D → U+201C - finance/tests/test_gui.py lines 501, 521: 2 × U+201D → U+201C Template lines 17 and 114 now have identical quote code points: U+201E...U+201C. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
· Einmalposten: {{ 'ja' if sc.include_planned else 'nein' }}
|
· Einmalposten: {{ 'ja' if sc.include_planned else 'nein' }}
|
||||||
<button type="button" onclick="toggleEdit('sc', {{ sc.id }}, true)">Bearbeiten</button>
|
<button type="button" onclick="toggleEdit('sc', {{ sc.id }}, true)">Bearbeiten</button>
|
||||||
<button type="button" hx-delete="/api/scenarios/{{ sc.id }}" hx-swap="none"
|
<button type="button" hx-delete="/api/scenarios/{{ sc.id }}" hx-swap="none"
|
||||||
hx-confirm="Szenario „{{ sc.name }}” mit allen Einträgen wirklich löschen?"
|
hx-confirm="Szenario „{{ sc.name }}“ mit allen Einträgen wirklich löschen?"
|
||||||
hx-on::after-request="if(event.detail.successful){window.location.reload()}">Löschen</button>
|
hx-on::after-request="if(event.detail.successful){window.location.reload()}">Löschen</button>
|
||||||
</p>
|
</p>
|
||||||
<div id="sc-edit-{{ sc.id }}" hidden>
|
<div id="sc-edit-{{ sc.id }}" hidden>
|
||||||
|
|||||||
@@ -498,7 +498,7 @@ def test_szenarien_seite_hat_loeschen_button(client, db):
|
|||||||
# Verify delete button is present
|
# Verify delete button is present
|
||||||
assert f'hx-delete="/api/scenarios/{sc.id}"' in r.text
|
assert f'hx-delete="/api/scenarios/{sc.id}"' in r.text
|
||||||
# Verify the full confirmation text in the page (brief requirement)
|
# Verify the full confirmation text in the page (brief requirement)
|
||||||
assert 'Szenario „Wegwerf” mit allen Einträgen wirklich löschen?' in r.text
|
assert 'Szenario „Wegwerf“ mit allen Einträgen wirklich löschen?' in r.text
|
||||||
|
|
||||||
# Parse HTML to verify the hx-confirm attribute has correct value with proper quotes
|
# Parse HTML to verify the hx-confirm attribute has correct value with proper quotes
|
||||||
class ButtonParser(HTMLParser):
|
class ButtonParser(HTMLParser):
|
||||||
@@ -518,7 +518,7 @@ def test_szenarien_seite_hat_loeschen_button(client, db):
|
|||||||
parser.feed(r.text)
|
parser.feed(r.text)
|
||||||
assert parser.found_delete_button, "Delete button not found"
|
assert parser.found_delete_button, "Delete button not found"
|
||||||
# Verify the attribute value uses correct typographic quotes
|
# Verify the attribute value uses correct typographic quotes
|
||||||
expected_confirm = 'Szenario „Wegwerf” mit allen Einträgen wirklich löschen?'
|
expected_confirm = 'Szenario „Wegwerf“ mit allen Einträgen wirklich löschen?'
|
||||||
assert parser.hx_confirm_value == expected_confirm, \
|
assert parser.hx_confirm_value == expected_confirm, \
|
||||||
f"hx-confirm attribute mismatch: got {repr(parser.hx_confirm_value)}, expected {repr(expected_confirm)}"
|
f"hx-confirm attribute mismatch: got {repr(parser.hx_confirm_value)}, expected {repr(expected_confirm)}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user