mirror of
https://github.com/PostHog/posthog.git
synced 2024-12-01 04:12:23 +01:00
b15232a9ef
* 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>
15 lines
490 B
JavaScript
15 lines
490 B
JavaScript
describe('Command Palette', () => {
|
|
it('Shows on toggle button click', () => {
|
|
cy.get('[data-attr=command-palette-toggle]').click()
|
|
cy.get('[data-attr=command-palette-input]').should('exist')
|
|
})
|
|
|
|
it('Shows on Ctrl + K press', () => {
|
|
cy.get('body').type('{ctrl}k')
|
|
cy.get('[data-attr=command-palette-input]').should('exist')
|
|
|
|
cy.get('body').type('{cmd}k')
|
|
cy.get('[data-attr=command-palette-input]').should('not.exist')
|
|
})
|
|
})
|