mirror of
https://github.com/PostHog/posthog.git
synced 2024-12-01 04:12:23 +01:00
000f76a5bd
* BUGFIX: re adding feature flag after deleting
* Suppport max array length and show more when need
* refactor
* added 3 distint id to user
* 2 users
* Revert "BUGFIX: re adding feature flag after deleting"
This reverts commit bf9b019b9e
.
* added more distinct
* added data-cy and person tests
* fixed tab
* added search for person if not first
38 lines
1.3 KiB
JavaScript
38 lines
1.3 KiB
JavaScript
describe('Person Visualization Check', () => {
|
|
beforeEach(() => {
|
|
cy.get('[data-attr=menu-item-people]').click() // TODO: Adjust when releasing navigation-1775
|
|
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()
|
|
})
|
|
|
|
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()
|
|
cy.get('[data-cy="show-more-distinct-id"]').should('not.exist')
|
|
})
|
|
|
|
it('Should have no Show All Distinct Id Button', () => {
|
|
cy.contains('deborah.fernandez@gmail.com').click()
|
|
cy.get('[data-cy="show-more-distinct-id"]').should('not.exist')
|
|
})
|
|
})
|