0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-24 09:14:46 +01:00
posthog/cypress/integration/persons.js
Paolo D'Amico 167a79fa2f
Release navigation-1775 (#3167)
Co-authored-by: yakkomajuri <yakko.majuri@gmail.com>
2021-02-04 10:53:00 +01:00

21 lines
741 B
JavaScript

describe('Persons', () => {
beforeEach(() => {
cy.get('[data-attr=menu-item-persons]').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')
})
})