mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-30 19:41:46 +01:00
ef2b6acda0
* simplify cypress nav menu clicks * clean unused annotations code * don't blank all cohorts when deleting one * add data-test-filters-loading to better target loading indicators in tests
21 lines
733 B
JavaScript
21 lines
733 B
JavaScript
describe('Persons', () => {
|
|
beforeEach(() => {
|
|
cy.clickNavMenu('persons')
|
|
})
|
|
|
|
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-radio-group > :nth-child(2)').click()
|
|
cy.get('[data-row-key]').its('length').should('be.gte', 10)
|
|
cy.get('.person-header.identified > .ph-no-capture').should('contain', '@')
|
|
cy.get('.ant-radio-group > :nth-child(3)').click()
|
|
cy.wait(200)
|
|
cy.get('.ant-empty-img-simple').should('exist') // No results placeholder
|
|
})
|
|
})
|