0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-29 11:12:33 +01:00
posthog/cypress/integration/licenses.js
Michael Matloka cc7d3ed3fc
Fix breadcrumbs and add some Cypress tests (#7533)
* Fix breadcrumbs and add some Cypress tests

* Update licenses.js
2021-12-07 10:58:28 +01:00

11 lines
514 B
JavaScript

describe('Licenses', () => {
it('Licenses loaded', () => {
cy.get('[data-attr=top-menu-toggle]').click()
cy.get('[data-attr=top-menu-item-licenses]').click()
cy.get('[data-attr=breadcrumb-0]').should('contain', 'test.posthog.net') // Breadcrumbs work
cy.get('[data-attr=breadcrumb-1]').should('have.text', 'Licenses') // Breadcrumbs work
cy.get('h1').should('contain', 'Licenses')
cy.title().should('equal', 'Licenses • PostHog') // Page title works
})
})