0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-12-01 04:12:23 +01:00
posthog/cypress/integration/people.js
Eric Duong 43d3b632b0
Capitalize actions and cohorts buttons (#1019)
* capitalized

* one more title
2020-06-15 20:43:14 +02:00

22 lines
585 B
JavaScript

describe('People', () => {
beforeEach(() => {
cy.get('[data-attr=menu-item-people]').click()
})
it('People loaded', () => {
cy.get('h1').should('contain', 'Users')
})
it('Go to new cohort from people screen', () => {
cy.get('[data-attr=create-cohort]').click()
cy.get('span').should('contain', 'New Cohort')
})
it('All people route works', () => {
cy.get('[data-attr=menu-item-cohorts]').click()
cy.get('[data-attr=menu-item-all-people]').click()
cy.get('h1').should('contain', 'Users')
})
})