mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-24 09:14:46 +01:00
485fd52607
* toggle upgrade language depending on flag value * forgot some local changes * update credit card case language * Update UI snapshots for `chromium` (1) * add event to record subscription status * Update UI snapshots for `chromium` (1) * Update UI snapshots for `chromium` (2) * add tests * remove length check * Update UI snapshots for `chromium` (1) * Update UI snapshots for `chromium` (1) * Update UI snapshots for `webkit` (2) * Update UI snapshots for `chromium` (2) * Update UI snapshots for `webkit` (2) * Update UI snapshots for `chromium` (2) * make common button component * some more small changes * Update UI snapshots for `webkit` (2) * Update UI snapshots for `webkit` (2) * remove extraneous files * remove optional chaining * Update UI snapshots for `webkit` (2) * Update UI snapshots for `webkit` (2) * Update UI snapshots for `webkit` (2) * remove test...rename event * Update UI snapshots for `chromium` (1) * didn't save before commiting * undo changes to billing cypress test * Update UI snapshots for `chromium` (1) * Update UI snapshots for `chromium` (2) * finally get cypress to work! * small fix to test * Update UI snapshots for `chromium` (2) * Update UI snapshots for `chromium` (2) * remove from paygate mini * Update UI snapshots for `chromium` (1) * Update UI snapshots for `chromium` (2) * Update UI snapshots for `chromium` (1) * remove paygate test * Update UI snapshots for `webkit` (2) * Update UI snapshots for `chromium` (2) * Update UI snapshots for `chromium` (2) * remove extraneous files * remove files! * Update UI snapshots for `webkit` (2) * Update UI snapshots for `chromium` (1) * Update UI snapshots for `chromium` (2) * Update UI snapshots for `chromium` (1) * Update UI snapshots for `chromium` (1) * update tests * Update UI snapshots for `webkit` (2) * Update UI snapshots for `chromium` (1) * Update UI snapshots for `chromium` (2) --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Raquel Smith <raquelmsmith@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('**/decide/*', (req) =>
req.reply(
decideResponse({
// add feature flags here, for e.g.
// 'feature-flag-key': true,
})
)
)