0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-24 09:14:46 +01:00
posthog/cypress/integration/retention.js
Marius Andra e4895ba80a
Cohorts Test (#2003)
* test creating and listing cohorts

* try to fix flakyness by clicking the dropdown item even if it's not visible
2020-10-23 15:52:59 +02:00

16 lines
575 B
JavaScript

describe('Retention', () => {
beforeEach(() => {
cy.visit('/')
cy.get('[data-attr=insight-retention-tab]').click()
})
it('Apply 1 overall filter', () => {
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')
})
})