mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-24 09:14:46 +01:00
16 lines
556 B
JavaScript
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')
|
|
})
|
|
})
|