0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-28 00:46:45 +01:00
posthog/cypress/support
Marius Andra a9fae11074
App context + persist feature flags + joy (#4652)
* preload user via django

* create django app context

* persist feature flags in localStorage

* add preflight into app context

* return undefined if no context

* keep user as `null`, it'll be overriden before anything renders anyway via `afterMount`

* remove broken and unused user code

* call `registerInstrumentationProps` when preloading `preflight`

* for cypress premium tests: add a search param to opt-out of using the preloaded context, so we could intercept the users api call
2021-06-09 11:08:49 +02:00
..
commands.js
helpers.js
index.js App context + persist feature flags + joy (#4652) 2021-06-09 11:08:49 +02:00