2020-05-22 18:34:48 +02:00
|
|
|
describe('People', () => {
|
|
|
|
beforeEach(() => {
|
|
|
|
cy.get('[data-attr=menu-item-people]').click()
|
|
|
|
})
|
|
|
|
|
|
|
|
it('People loaded', () => {
|
|
|
|
cy.get('h1').should('contain', 'Users')
|
|
|
|
})
|
|
|
|
|
|
|
|
it('Go to new cohort from people screen', () => {
|
|
|
|
cy.get('[data-attr=create-cohort]').click()
|
2020-06-15 20:43:14 +02:00
|
|
|
cy.get('span').should('contain', 'New Cohort')
|
2020-05-22 18:34:48 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
it('All people route works', () => {
|
|
|
|
cy.get('[data-attr=menu-item-cohorts]').click()
|
|
|
|
cy.get('[data-attr=menu-item-all-people]').click()
|
|
|
|
|
|
|
|
cy.get('h1').should('contain', 'Users')
|
|
|
|
})
|
2020-06-24 21:13:56 +02:00
|
|
|
|
|
|
|
it('Retention route works', () => {
|
|
|
|
cy.get('[data-attr=menu-item-retention]').click()
|
|
|
|
|
|
|
|
cy.get('h1').should('contain', 'Retention')
|
|
|
|
})
|
2020-07-09 15:26:47 +02:00
|
|
|
|
|
|
|
it('Apply 1 overall filter', () => {
|
|
|
|
cy.get('[data-attr=menu-item-retention]').click()
|
|
|
|
cy.get('[data-attr=new-prop-filter-RetentionTable]').click()
|
|
|
|
cy.get('[data-attr=prop-filter-person-0]').click()
|
|
|
|
cy.get('[data-attr=prop-val]').click()
|
|
|
|
cy.get('[data-attr=prop-val-0]').click()
|
|
|
|
cy.get('[data-attr=retention-table').should('exist')
|
|
|
|
})
|
2020-05-22 18:34:48 +02:00
|
|
|
})
|