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()
|
2021-07-22 20:40:49 +02:00
|
|
|
cy.get('[data-attr=taxonomic-filter-searchfield]').click()
|
|
|
|
cy.get('[data-attr=taxonomic-filter-searchfield]').type('is_demo')
|
|
|
|
cy.get('[data-attr=taxonomic-tab-person_properties]').click()
|
|
|
|
cy.get('[data-attr=prop-filter-person_properties-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
|
|
|
})
|
|
|
|
})
|