0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-25 02:49:32 +01:00
posthog/cypress/integration/commandPalette.js
2021-04-08 15:18:32 +00:00

16 lines
556 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('[data-attr=layout-content]').contains('Insights')
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')
})
})