Kundenansicht neu P7: Wechselseite schlank, Sofortbeginn-Häkchen nur privat
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c6ecb5242c
commit
e7ac625f26
4 files changed
+270
-89
No files matched your search
@@ -52,6 +52,14 @@ test('baueLinkzeile, baueKundenartZeile, baueBlock', () =>
|
||||
test('hatWortlaut', () => {
|
||||
assert.equal(hatWortlaut(aboNeu()), true)
|
||||
for (const d of [null, undefined, {}, { bestelltexte: {} }, { bestelltexte: { status: 'entwurf', knopf: 'x' } }, { bestelltexte: { status: 'entwurf', abo: { linkzeile: { text: 'a' } } } }]) assert.equal(hatWortlaut(d), false)
|
||||
for (const art of ['abo', 'wechsel', 'speicher', 'gutschrift']) assert.equal(hatWortlaut(aboNeu(), art), true, art)
|
||||
// jede Seite prüft ihre eigenen Sätze
|
||||
const ohne = (teil) => { const d = aboNeu(); delete d.bestelltexte[teil]; return d }
|
||||
assert.deepEqual(['abo', 'wechsel', 'speicher', 'gutschrift'].map((art) => hatWortlaut(ohne(art), art)), [false, false, false, false])
|
||||
assert.equal(hatWortlaut(ohne('wechsel'), 'abo'), true)
|
||||
const ohneGesperrt = aboNeu()
|
||||
ohneGesperrt.bestelltexte.wechsel.gesperrt = ''
|
||||
assert.equal(hatWortlaut(ohneGesperrt, 'wechsel'), false)
|
||||
})
|
||||
|
||||
test('Quelltext: keine HTML-Einsetzung, Du-Form, keine h1', () => {
|
||||
|
||||
Reference in new issue
Block a user