0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-24 18:07:17 +01:00
posthog/cypress/e2e/toolbar.js
Paul D'Ambra 41dba04443
feat: toolbar side bar launching v2 (#10377)
* unique attribute on toolbar side action button

* remove sneaky it.only

* clicking add new URL moves to toolbar page and focusses the new url input

* refactor tests
2022-06-21 09:10:29 +02:00

13 lines
438 B
JavaScript

describe('Toolbar', () => {
it('Toolbar loads', () => {
cy.visit('/demo')
cy.get('#__POSTHOG_TOOLBAR__').should('exist')
})
it('toolbar item in sidebar has launch options', () => {
cy.get('[data-attr="menu-item-toolbar-launch"]').click()
cy.get('[data-attr="sidebar-launch-toolbar"]').contains('Add toolbar URL').click()
cy.location('pathname').should('include', '/toolbar')
})
})