0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-12-01 12:21:02 +01:00
posthog/cypress
2024-03-07 11:27:23 +01:00
..
data/exports
e2e revert: API toast changes (#20748) 2024-03-07 11:27:23 +01:00
fixtures feat: add feature gating for teams plan (#20435) 2024-03-04 07:07:09 -08:00
productAnalytics fix(insights): Move from GET to POST queries (#19859) 2024-02-12 16:33:04 +01:00
support chore(deps): Update posthog-js to 1.109.0 (#20570) 2024-02-27 09:37:58 -05:00
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,
        })
    )
)