0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-25 11:17:50 +01:00
posthog/cypress
Ben White bbb7ed9968
feat: Added recording of e2e test runs (#16046)
Marius nerd-sniped us to try this out. Recording of Cypress runs.

Co-authored-by: Paul D'Ambra <paul@posthog.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-07-10 15:59:30 +01:00
..
data/exports
e2e feat(hogql): remove feature flag (#15936) 2023-06-29 13:23:36 +00:00
fixtures test(login): Verify that Google login link is correct (#14668) 2023-03-10 10:15:42 +00:00
productAnalytics feat: Notebook queries node (#15910) 2023-06-16 16:08:07 +02:00
support feat: Added recording of e2e test runs (#16046) 2023-07-10 15:59:30 +01: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,
        })
    )
)