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
|
|
|
})
|
|
|
|
|
2020-08-25 01:58:12 +02:00
|
|
|
it('All tabs work', () => {
|
|
|
|
cy.get('.form-control').type('has:email').type('{enter}').should('have.value', 'has:email')
|
|
|
|
cy.wait(200)
|
2020-09-18 15:26:12 +02:00
|
|
|
cy.get('.ant-tabs-nav-list > :nth-child(2)').click()
|
2020-08-25 01:58:12 +02:00
|
|
|
cy.get('[data-row-key="100"] > :nth-child(2) > .ph-no-capture').should('contain', '@')
|
2020-09-18 15:26:12 +02:00
|
|
|
cy.get('.ant-tabs-nav-list > :nth-child(3)').click()
|
2020-08-25 01:58:12 +02:00
|
|
|
cy.wait(200)
|
2020-09-18 15:26:12 +02:00
|
|
|
cy.get('.ant-empty-img-simple').should('exist')
|
2020-08-25 01:58:12 +02:00
|
|
|
})
|
|
|
|
|
2020-05-22 18:34:48 +02:00
|
|
|
it('All people route works', () => {
|
2020-10-22 10:58:32 +02:00
|
|
|
cy.get('[data-attr=menu-item-people-cohorts]').click()
|
|
|
|
cy.get('[data-attr=menu-item-people-persons]').click()
|
2020-05-22 18:34:48 +02:00
|
|
|
|
|
|
|
cy.get('h1').should('contain', 'Users')
|
|
|
|
})
|
|
|
|
})
|