fix: Final-Review A14 – Beispielbetrag ersetzt, Vorzeichen-Hinweis Neuer Betrag, Laufzeit max 1200, Mermaid
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -75,6 +75,16 @@ test('Neuer Betrag: Ziel-Typ fest auf Posten, Kategorie gesperrt', { skip: !JSDO
|
||||
assert.equal(typ.querySelector('option[value="category"]').disabled, false);
|
||||
});
|
||||
|
||||
test('Neuer Betrag: Vorzeichen-Hinweis als Platzhalter und Tooltip', { skip: !JSDOM }, () => {
|
||||
const { w, a } = load();
|
||||
art(w, a, 'set');
|
||||
assert.equal(f(a, 'value').placeholder, '-250,00');
|
||||
assert.ok(f(a, 'value').title.includes('Vorzeichen'));
|
||||
art(w, a, 'percent');
|
||||
assert.equal(f(a, 'value').placeholder, '');
|
||||
assert.equal(f(a, 'value').hasAttribute('title'), false);
|
||||
});
|
||||
|
||||
test('Ende: Gültig ab und Wert gesperrt, Label Endet am', { skip: !JSDOM }, () => {
|
||||
const { w, a } = load();
|
||||
art(w, a, 'ende');
|
||||
|
||||
@@ -705,3 +705,13 @@ def test_szenario_eintraege_zeitraum_und_wiederkehrend(client, db):
|
||||
assert f'hx-delete="/api/scenarios/{sc.id}/recurring/' in r
|
||||
assert "Kat-Anzeige" in r and "Zahlung-E" in r
|
||||
assert 'id="sri-row-' in r and 'id="sri-edit-' in r
|
||||
|
||||
|
||||
def test_planung_laufzeit_felder_haben_max_1200(client, db):
|
||||
client.post("/login", data={"username": "admin", "password": "geheim"})
|
||||
db.add(Loan(name="MaxL", principal=Decimal("1000.00"),
|
||||
annual_rate_pct=Decimal("4.50"), term_months=12,
|
||||
payout_date=date(2026, 8, 1), repayment_type="annuity"))
|
||||
db.commit()
|
||||
r = client.get("/planung").text
|
||||
assert r.count('max="1200"') >= 2
|
||||
|
||||
Reference in New Issue
Block a user