mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-24 09:14:46 +01:00
18 lines
548 B
JavaScript
18 lines
548 B
JavaScript
|
describe('Command Palette', () => {
|
||
|
beforeEach(() => {
|
||
|
cy.visit('/events')
|
||
|
})
|
||
|
|
||
|
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}C')
|
||
|
cy.get('[data-attr=command-palette-input]').should('exist')
|
||
|
cy.get('body').type('{cmd}C')
|
||
|
cy.get('[data-attr=command-palette-input]').should('not.exist')
|
||
|
})
|
||
|
})
|