mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-28 09:16:49 +01:00
c24c58828f
* Upgrade cypress - https://docs.cypress.io/guides/references/migration-guide.html#Migrating-to-Cypress-5-0 - https://docs.cypress.io/guides/references/changelog.html#5-0-0 * Run tests multiple times if flaky * Fix broken command palette cypress test * Remove default retries options
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')
|
|
})
|
|
})
|