Analyse: Heatmap-Link, Sperre, leere Domains, Tab-Wettlauf

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
ClaudeandClaude Sonnet 5.5 committed 2026-10-01 10:27:20 +00:00
1 parent 5a6fbc7328
commit 7fc5ba8528
3 files changed
+25 -13

No files matched your search

+5 -4
View File
@@ -230,10 +230,11 @@ test('Härtung: ungültige Hosts, Pfadzeichen, Fehler bei einem Projekt', async
const link = (path) => post(`${A}/heatmap-link`, { projectId: 'p1', path, vp: 'd' }, { cookie })
for (const path of ['/a\\b', '/a b', '/a\nb', '/a\u0000b', '/a\tb', '/a\u007fb']) assert.equal((await link(path)).status, 400, JSON.stringify(path))
assert.equal((await link('/über-uns')).status, 200)
// keine gueltige Domain => 409
// keine gueltige Domain => Aktivieren scheitert mit 409, vor dem Sammeldienst
aw.seed('websiteProjects', { $id: 'p7', customerId: 'c1', projectName: 'Kaputt', subdomain: 'ka putt', liveDomain: 'x_y', isPublic: true })
await post(`${A}/activate`, { projectId: 'p7', consent: consent() }, { cookie })
const bad = await post(`${A}/heatmap-link`, { projectId: 'p7', path: '/', vp: 'd' }, { cookie })
const before = puts.length
const bad = await post(`${A}/activate`, { projectId: 'p7', consent: consent() }, { cookie })
assert.equal(bad.status, 409)
assert.equal(bad.body.error, 'Keine gültige Domain')
assert.equal(bad.body.error, 'Keine gültige Domain für die Analyse')
assert.equal(puts.length, before)
})