0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-12-01 12:21:02 +01:00
posthog/cypress
Li Yi Yu 93774bfa58
chore(surveys): refactor and clean up old flags (#18972)
* refactor and clean up old flags

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-11-30 10:17:30 -05:00
..
data/exports feat(exports): Dashboard / Insight exporting (#9830) 2022-05-27 14:31:17 +02:00
e2e fix(3000): Ensure all scenes work well with the new top bar (#18890) 2023-11-27 15:27:00 +00:00
fixtures feat: Add Unsubscription Survey (#18231) 2023-11-02 13:34:45 -07:00
productAnalytics fix(notebooks): use varying keys for global filters (#18601) 2023-11-14 14:38:36 +00:00
support chore(surveys): refactor and clean up old flags (#18972) 2023-11-30 10:17:30 -05:00
README.md feat(exports): Dashboard / Insight exporting (#9830) 2022-05-27 14:31:17 +02:00
tsconfig.json test(e2e): convert cypress to typescript (#13513) 2022-12-30 11:23:09 +01:00
wait.py Update mypy and typed-ast, fail early if db version not in range (#7599) 2021-12-10 09:29:04 +01:00

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,
        })
    )
)