mirror of
https://github.com/jjbrunton/Sauci.git
synced 2026-11-02 02:19:43 +00:00
fix(acquisition): close invite privacy gaps
This commit is contained in:
1 parent
1c7084c033
commit
4a57f31615
15 files changed
+213
-70
No files matched your search
@@ -0,0 +1,16 @@
|
||||
import { readFile } from 'node:fs/promises'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
|
||||
const providerPath = new URL('./providers.tsx', import.meta.url)
|
||||
|
||||
describe('PostHogProvider invite privacy', () => {
|
||||
it('disables DOM autocapture and session recording on invite routes', async () => {
|
||||
const source = await readFile(providerPath, 'utf8')
|
||||
|
||||
expect(source).toContain("pathname?.startsWith('/join/')")
|
||||
expect(source).toContain("window.location.pathname.startsWith('/join/')")
|
||||
expect(source).toContain('autocapture: !isInvitePage')
|
||||
expect(source).toContain('disable_session_recording: isInvitePage')
|
||||
expect(source).toContain('mask_all_text: isInvitePage')
|
||||
})
|
||||
})
|
||||
Reference in new issue
Block a user