mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-28 18:26:15 +01:00
5db28bbec2
* 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 |
||
---|---|---|
.. | ||
fixtures | ||
integration | ||
plugins | ||
support | ||
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,
})
)
)