fix(acquisition): close invite privacy gaps

This commit is contained in:
jjbrunton committed 2026-09-06 13:18:11 +01:00
1 parent 1c7084c033
commit 4a57f31615
15 files changed
+213 -70

No files matched your search

+10 -2
View File
@@ -65,13 +65,21 @@ describe('/join/[code] JoinClient', () => {
expect(source).not.toContain('glass-light')
})
it('describes open-answer visibility truthfully', async () => {
it('describes comparison and open-answer visibility truthfully', async () => {
const source = await readFile(componentPath, 'utf8')
expect(source).toContain('For open-answer questions, each response can be visible after you have both answered.')
expect(source).toContain('Vote-style questions reveal shared outcomes')
expect(source).toContain('open text, audio, photo, and who-likely responses can be visible to you both after you have each answered.')
expect(source).not.toContain('Neither of you sees the other’s individual answers.')
})
it('marks the invite-code surface out of PostHog DOM capture and replay', async () => {
const source = await readFile(componentPath, 'utf8')
expect(source).toContain('data-ph-no-capture')
expect(source).toContain('data-ph-mask')
})
it('shows a clear fallback message for a malformed invite code', async () => {
const source = await readFile(componentPath, 'utf8')