0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-28 18:26:15 +01:00
posthog/cypress
Paul D'Ambra 5db28bbec2
Allows date equality checking in property filters (#8352)
* allow datepicker in date only mode

* allow exact date matching in property filters

* marks is_date_after as a date operator

* the date picker needs to work with null/undefined as well as string

* remove unused relative date parsing and fix date only is_date_exact property filters

* default to dates without times matching exactly

* make datetime filters by second work on date values that include milliseconds

* fix TS error

* correct insight url cypress test

* replace useMemo with useEffect

* be more specific in regex date match

* spacing under the quick choices

* when checking after a date for a date only filter check against that day at 23:59:59

* remove redundant text

* add test case and fix is_date_after query
2022-02-02 12:29:59 +01:00
..
fixtures Deprecates property_type_format (#8292) 2022-02-01 14:08:55 +00:00
integration Allows date equality checking in property filters (#8352) 2022-02-02 12:29:59 +01:00
plugins
support E2E don't login before each test (#8111) 2022-01-18 16:16:44 +01:00
README.md
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({
                '6619-query-events-by-date': true,
          })
      )
  )