mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-24 09:14:46 +01:00
eb7b361401
* Fix links to people from Retention modal and Funnels. More details under issue https://github.com/PostHog/posthog/issues/3480 * Fix funnel calculations on self-hosted Broken by renames within https://github.com/PostHog/posthog/pull/3301 * Handle cached calculations in e2e test runner When executing e2e tests, celery tasks are evaluated immediately. Previously due to the caching the funnels never loaded as we overwrite the results immediately. * Add test for navigating to persons from funnels * Test for retention visualization and person navigation
25 lines
964 B
JavaScript
25 lines
964 B
JavaScript
describe('Retention', () => {
|
|
beforeEach(() => {
|
|
cy.get('[data-attr=insight-retention-tab]').click()
|
|
})
|
|
|
|
it('should apply filter and navigate to persons', () => {
|
|
cy.get('[data-attr=new-prop-filter-insight-retention]').click()
|
|
cy.get('[data-attr=property-filter-dropdown]').click()
|
|
cy.get('[data-attr=prop-filter-person-0]').click({ force: true })
|
|
cy.get('[data-attr=prop-val]').click()
|
|
cy.get('[data-attr=prop-val-0]').click({ force: true })
|
|
cy.get('[data-attr=retention-table').should('exist')
|
|
|
|
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')
|
|
})
|
|
})
|