0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-24 09:14:46 +01:00
posthog/cypress
Bianca Yang 485fd52607
feat: Experiment with language on billing pages in app (#20567)
* 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>
2024-03-18 12:03:29 -07:00
..
data/exports
e2e feat: Experiment with language on billing pages in app (#20567) 2024-03-18 12:03:29 -07:00
fixtures feat: Experiment with language on billing pages in app (#20567) 2024-03-18 12:03:29 -07:00
productAnalytics feat: ~LemonMulitSelect~ LemonInputSelect (#20948) 2024-03-18 13:27:29 +01:00
support chore(deps): Update posthog-js to 1.112.1 (#20782) 2024-03-11 07:48:55 -04:00
README.md chore(deps): Update posthog-js to 1.112.1 (#20782) 2024-03-11 07:48:55 -04:00
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,
        })
    )
)