0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-25 02:49:32 +01:00
posthog/cypress/integration/commandPalette.js
Karl-Aksel Puulmann c24c58828f
Upgrade cypress, fix and stabilize tests (#1872)
* 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
2020-10-14 15:36:25 +03:00

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')
})
})