From afec0b82fde8d88bf17f616de7d02ea14346142c Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 27 Sep 2026 15:04:56 +0000 Subject: [PATCH] Plan 2: letzter Test ohne Platzhalter Co-Authored-By: Claude Opus 5.5 --- .../plans/2026-09-27-vertraege-plan-2-sichtbar.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/superpowers/plans/2026-09-27-vertraege-plan-2-sichtbar.md b/docs/superpowers/plans/2026-09-27-vertraege-plan-2-sichtbar.md index da33bf4..47790f0 100644 --- a/docs/superpowers/plans/2026-09-27-vertraege-plan-2-sichtbar.md +++ b/docs/superpowers/plans/2026-09-27-vertraege-plan-2-sichtbar.md @@ -562,8 +562,11 @@ test('GET /api/abo: Katalog, Hosting-Abo mit Speicher, kein Stundenkonto', async assert.equal(r.subscription.canSwitch, true); assert.equal(r.ledger, null) assert.equal(r.subscription.termsUrl, '/abo-bedingungen.html') }) -test('GET /api/abo: Wartung v3 → Link auf Fassung 3, Stundenkonto da', async () => { /* … */ - assert.equal(r.subscription.termsUrl, '/vertragsunterlagen/v3/abo-bedingungen.html'); assert.ok(r.ledger) }) +test('GET /api/abo: Wartung v3 → Link auf Fassung 3, Stundenkonto da', async () => { + aw.seed('subscriptions', { ...wartungDoc, $id: 'sub_h', customerId: 'c1', termsVersion: '2026-09-25-v3' }) + const r = await get('/api/abo', { cookie: customerCookie() }) + assert.equal(r.subscription.termsUrl, '/vertragsunterlagen/v3/abo-bedingungen.html'); assert.ok(r.ledger) +}) test('Checkout Hosting: Preis, Beschreibung, Hinweistext', async () => { const res = await post('/api/abo/checkout', { productKey: 'hosting', acceptTerms: true, startChoice: 'sofort', termsVersion: config.abo.termsVersion, offerId: '' }) const call = st.calls.find((c) => c.path === '/v1/checkout/sessions')