0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-24 18:07:17 +01:00
posthog/cypress/integration/people.js
Paolo D'Amico cd251df713
[WIP] New UI (#2114)
Co-authored-by: Michael Matloka <dev@twixes.com>
2020-11-05 12:55:33 +00:00

28 lines
949 B
JavaScript

describe('People', () => {
beforeEach(() => {
cy.get('[data-attr=menu-item-people]').click()
})
it('People loaded', () => {
cy.get('h1').should('contain', 'Persons')
})
it('All tabs work', () => {
cy.get('[data-attr=persons-search]').type('has:email').type('{enter}').should('have.value', 'has:email')
cy.wait(200)
cy.get('.ant-tabs-nav-list > :nth-child(2)').click()
cy.get('[data-row-key="100"] > :nth-child(2) > .ph-no-capture').should('contain', '@')
cy.get('.ant-tabs-nav-list > :nth-child(3)').click()
cy.wait(200)
cy.get('.ant-empty-img-simple').should('exist')
})
it('All people route works', () => {
cy.get('[data-attr=menu-item-people-cohorts]').click()
cy.get('h1').should('contain', 'Cohorts')
cy.get('[data-attr=menu-item-people-persons]').click()
cy.get('h1').should('contain', 'Persons')
})
})