0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-29 02:46:32 +01:00
posthog/cypress
Michael Matloka 89f756b255
ShareModal redesign (#8346)
* Update switch style

* Update dashboard embed snippet wording

* Improve dashboard item dragging

* Rework `ShareModal` for new design

* Update E2E test

* Fix mispaste

* Update dashboard.js

* Update dashboard.js
2022-01-31 16:07:24 +01:00
..
fixtures Revert "Adds reserved properties for filtering property definitions (#8291)" (#8340) 2022-01-28 15:51:54 +02:00
integration ShareModal redesign (#8346) 2022-01-31 16:07:24 +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,
          })
      )
  )