mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-24 18:07:17 +01:00
303e88bbfc
* revert: #11552 * feat: save title and description on blur * allow undo when renaming insight * minimise change * minimise change * fix cancelling and add conditional updatedaashboard undo * no need to change saved insights logic * only save on blur if value has changed else cancel * add cypress test to rename insight * add a cypress test that you can change (and revert that change) an insight name * wait for insight save to complete |
||
---|---|---|
.. | ||
data/exports | ||
e2e | ||
fixtures | ||
support | ||
README.md | ||
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,
})
)
)