mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-28 09:16:49 +01:00
4cb64d0c74
* added timeouts and waits to ensure flow of cypress tests * removed unused test * fixed trends elements tests * testing a longer wait time - temp * fix trends sessions and retetion filtering tests * fix events filtering test * removed wait * trends sessions fix * minor update * fix live actions & sessions * improve timeouts * more timouts * removed some waits * added timeouts to trends tests * modify config * remove test on bug * removed timeout from events table * remove dashboards timeout * change selector for sessions tab * use data-attr
47 lines
1.5 KiB
JavaScript
47 lines
1.5 KiB
JavaScript
describe('Funnels', () => {
|
|
beforeEach(() => {
|
|
cy.visit('/')
|
|
cy.get('[data-attr=insight-funnels-tab]').click()
|
|
cy.wait(200)
|
|
})
|
|
|
|
it('Add 1 action to funnel', () => {
|
|
cy.get('[data-attr=add-action-event-button]').click()
|
|
cy.get('[data-attr=trend-element-subject-0]').click()
|
|
cy.contains('Pageviews').click()
|
|
|
|
cy.get('[data-attr=save-funnel-button]').click()
|
|
|
|
cy.get('[data-attr=funnel-viz]').should('exist')
|
|
})
|
|
|
|
it('Apply date filter to funnel', () => {
|
|
cy.get('[data-attr=add-action-event-button]').click()
|
|
cy.get('[data-attr=trend-element-subject-0]').click()
|
|
cy.contains('Pageviews').click()
|
|
cy.get('[data-attr=save-funnel-button]').click()
|
|
|
|
cy.get('[data-attr=date-filter]').click()
|
|
cy.contains('Last 30 days').click()
|
|
|
|
cy.get('[data-attr=date-filter]').click()
|
|
cy.contains('Last 30 days').click()
|
|
|
|
cy.get('[data-attr=funnel-viz]').should('exist')
|
|
})
|
|
|
|
it('Add 2 actions to funnel', () => {
|
|
cy.get('[data-attr=add-action-event-button]').click()
|
|
cy.get('[data-attr=trend-element-subject-0]').click()
|
|
cy.contains('Pageviews').click()
|
|
|
|
cy.get('[data-attr=add-action-event-button]').click()
|
|
cy.get('[data-attr=trend-element-subject-1]').click()
|
|
cy.contains('HogFlix homepage view').click()
|
|
|
|
cy.get('[data-attr=save-funnel-button]').click()
|
|
|
|
cy.get('[data-attr=funnel-viz]').should('exist')
|
|
})
|
|
})
|