2020-09-07 16:23:13 +02:00
|
|
|
describe('Retention', () => {
|
2020-07-29 17:51:49 +02:00
|
|
|
beforeEach(() => {
|
|
|
|
cy.get('[data-attr=insight-retention-tab]').click()
|
|
|
|
})
|
|
|
|
|
2021-02-25 16:41:25 +01:00
|
|
|
it('should apply filter and navigate to persons', () => {
|
2020-07-29 17:51:49 +02:00
|
|
|
cy.get('[data-attr=new-prop-filter-insight-retention]').click()
|
2020-09-18 15:26:12 +02:00
|
|
|
cy.get('[data-attr=property-filter-dropdown]').click()
|
2020-10-23 15:52:59 +02:00
|
|
|
cy.get('[data-attr=prop-filter-person-0]').click({ force: true })
|
2020-07-29 17:51:49 +02:00
|
|
|
cy.get('[data-attr=prop-val]').click()
|
2020-10-23 15:52:59 +02:00
|
|
|
cy.get('[data-attr=prop-val-0]').click({ force: true })
|
2020-07-29 17:51:49 +02:00
|
|
|
cy.get('[data-attr=retention-table').should('exist')
|
2021-02-25 16:41:25 +01:00
|
|
|
|
|
|
|
cy.get('.percentage-cell').last().click()
|
|
|
|
|
|
|
|
cy.get('[data-attr=retention-person-link]').its('length').should('eq', 1)
|
|
|
|
cy.get('[data-attr=retention-person-link]').contains('smith.nunez@gmail.com')
|
|
|
|
|
|
|
|
cy.get('[data-attr=retention-person-link]').click()
|
|
|
|
|
|
|
|
cy.url().should('include', '/person/')
|
|
|
|
cy.contains('smith.nunez@gmail.com').should('exist')
|
2020-07-29 17:51:49 +02:00
|
|
|
})
|
|
|
|
})
|