0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-12-01 12:21:02 +01:00
posthog/cypress
Buddy Williams b15232a9ef
wip: support test_ api key (#4206)
* wip: support test_ api key

* Renamed test_environment property to

* Added Prod/Test switch to determine which environment to show data for

* moved environment toggle behind feature flag

* corrected key name to standard $ names

* Moved hidden filters to PropertyKeyInfo for improved clarity

* fix typing

* proposed UI

* Renamed  to ; Changed  to a string and added environment const types: production, test; Moved  into a hidden filter along with environment types for the frontend; Corrected tests to use environment constants;  is no longer set by default but only when test_ is supplied in the apiKey or  is manually supplied; Moved environment to navigationLogic;

* Added filter for test environments so that when it's enabled all test environments are filtered out

* Remove component if feature flag for test-environment is enabled

* adjust style of tooltip

* adjust UI based on @corywatilo's input

* implemented toggle functionality

* Made Environments an enum for clarity

* Moved environment constants to constants.py for consistency

* Moved Environments into constants for consistency

* Using parameter destructuring for better syntax

* Make sure type is set as a string

* Removed test filters

* Created _clean_token to ensure test_ is removed from all the places

* Bug fixes for adding filter property so that it work properly

* Show test account filter

* ensure token isn't None so that mypy checks pass

* Corrected css selector syntax

* removed quote since it's not needed

* Corrected cypress test by excluding featureFlag usage on shared dashboard scene

* Fixed test

* corrected syntax style issues

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
Co-authored-by: Buddy Williams <buddy@Buddys-MacBook-Pro.local>
2021-05-21 11:34:07 -04:00
..
fixtures Rename is_ee_enabled to is_clickhouse_enabled (#4216) 2021-05-13 16:56:54 +02:00
integration wip: support test_ api key (#4206) 2021-05-21 11:34:07 -04:00
plugins Add test for bar charts (#3474) 2021-02-26 16:50:36 +02:00
support Fix e2e tests (#4357) 2021-05-20 16:42:26 +02:00
wait.py Signup improvements (#1535) 2020-09-07 09:23:13 -05:00