mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-24 18:07:17 +01:00
bac246a98e
* Get rid of control version * Don't show option to license on billing page * Remove ff constant * Include plans in billing response * Update types for the plans * Hook up the top of the table * Fill out the rest of the table * Hook up the rest of the table * Add tooltip with feature descriptions * Fix type errors * Fix more type issues * Remove old plan data * clean up * exclude features we don't want to show in table * Tolerate missing plan keys * fix mypy * Update cypresss test * Fix mypy again * Just get whatever default plans * fix tests * Update snapshots * Update snapshots * moar test fixes * use is_free to know if free plan * Say the free allotment is incl'd if base has $ price * Update snapshots * Don't change anything having to do with licenses * Fix type error * Update snapshots * Update snapshots * Use product name from stripe * only lowercase * don't hardcode plan names Co-authored-by: Emanuele Capparelli <k@emkpp.com> Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> |
||
---|---|---|
.. | ||
data/exports | ||
e2e | ||
fixtures | ||
productAnalytics | ||
support | ||
README.md | ||
tsconfig.json | ||
wait.py |
Testing Feature Flags
The Cypress tests run with a PostHog instance that has no feature flags set up.
To test feature flags you can intercept the call to the decide
endpoint
// sometimes the system under test calls `/decide`
// and sometimes it calls https://app.posthog.com/decide
cy.intercept('https://app.posthog.com/decide/*', (req) =>
req.reply(
decideResponse({
// add feature flags here, for e.g.
// 'feature-flag-key': true,
})
)
)