mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-24 18:07:17 +01:00
15d04d9e56
* Unify clickhouse and pg demo data creation * Adapt yakkos demo data generation to normal demo * Split demo.py into subfolder * Add original, web data import Note that elements are not added because they can't be added automagically :(. * Improve wording * dont generate dashboards * try get tests passing * fix types * Get cypress tests green
30 lines
1.0 KiB
JavaScript
30 lines
1.0 KiB
JavaScript
describe('Persons', () => {
|
|
beforeEach(() => {
|
|
// TODO: Remove when releasing navigation-1775
|
|
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]').its('length').should('be.gte', 10)
|
|
cy.get('[data-row-key="9"] > :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('Person & cohorts routes works', () => {
|
|
cy.get('[data-attr=menu-item-cohorts]').click()
|
|
cy.get('h1').should('contain', 'Cohorts')
|
|
|
|
cy.get('[data-attr=menu-item-persons]').click()
|
|
cy.get('h1').should('contain', 'Persons')
|
|
})
|
|
})
|