Funktionen: Zustimmung in Textform auch per WhatsApp
Der Aktivieren-Dialog von Terminplaner, Webshop und Buchungskalender bietet als Weg zusätzlich WhatsApp an (Portal nimmt whatsapp an). Die Website-Analyse bleibt bei Chat oder E-Mail. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
dc4df16cab
commit
0112c77afc
5 files changed
+16
-6
No files matched your search
@@ -56,6 +56,10 @@ test('textformLabel nennt die Fassung und die Zielgruppen-Bestaetigung', () => {
|
||||
})
|
||||
|
||||
const ok = { confirmed: true, date: '2026-10-02', channel: 'email', today: '2026-10-03', minDate: '2026-10-02' }
|
||||
test('channelLabel: WhatsApp fuer Funktionen', () => {
|
||||
assert.equal(channelLabel('whatsapp'), 'WhatsApp')
|
||||
})
|
||||
|
||||
test('canSubmitTextform: alles gueltig => true (Grenzen eingeschlossen)', () => {
|
||||
assert.equal(canSubmitTextform(ok), true)
|
||||
assert.equal(canSubmitTextform({ ...ok, channel: 'chat', date: '2026-10-03' }), true)
|
||||
@@ -65,6 +69,7 @@ test('canSubmitTextform: fehlende oder ungueltige Angaben => false', () => {
|
||||
assert.equal(canSubmitTextform({ ...ok, date: '' }), false)
|
||||
assert.equal(canSubmitTextform({ ...ok, channel: '' }), false)
|
||||
assert.equal(canSubmitTextform({ ...ok, channel: 'telefon' }), false)
|
||||
assert.equal(canSubmitTextform({ ...ok, channel: 'whatsapp' }), false, 'Analyse: nur Chat oder E-Mail')
|
||||
assert.equal(canSubmitTextform({ ...ok, date: '2026-10-01' }), false)
|
||||
assert.equal(canSubmitTextform({ ...ok, date: '2026-10-04' }), false)
|
||||
assert.equal(canSubmitTextform({ ...ok, date: 'morgen' }), false)
|
||||
|
||||
Reference in new issue
Block a user