0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-24 18:07:17 +01:00
posthog/cypress/integration/person.js
Karl-Aksel Puulmann 15d04d9e56
Improve demo data (#3111)
* 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
2021-01-28 13:50:01 +02:00

41 lines
1.5 KiB
JavaScript

describe('Person Visualization Check', () => {
beforeEach(() => {
cy.get('[data-attr=menu-item-people]').click() // TODO: Adjust when releasing navigation-1775
cy.get('[data-attr=menu-item-persons].ant-menu-item-selected').should('be.visible')
cy.get('.ant-tabs-nav-list > :nth-child(2)').click()
cy.contains('deborah.fernandez@gmail.com').click()
})
it('Can access person page', () => {
cy.get('[data-row-key="email"] > :nth-child(1)').should('contain', 'email')
})
it('Events table loads', () => {
cy.get('.events').should('exist')
})
// Add when feature flag for session recording is off
// it('Sessions table loads', () => {})
})
describe('Person Show All Distinct Checks', () => {
beforeEach(() => {
cy.get('[data-attr=menu-item-people]').click()
cy.get('[data-attr=menu-item-persons].ant-menu-item-selected').should('be.visible')
})
// it('Should have Show All Distinct Id Button', () => {
// cy.get('.ant-input').type('smith.nunez@gmail.com').type('{enter}')
// cy.contains('smith.nunez@gmail.com').click()
// cy.get('[data-cy="show-more-distinct-id"]').should('exist')
// cy.get('[data-cy="show-more-distinct-id"]').click()
// })
it('Should have no Show All Distinct Id Button', () => {
cy.get('.ant-tabs-nav-list > :nth-child(2)').click()
cy.contains('deborah.fernandez@gmail.com').click()
cy.get('[data-cy="show-more-distinct-id"]').should('not.exist')
})
})