mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-24 18:07:17 +01:00
720c06f9e6
* initial test * add yaml * add logs * without tail * run again for consistency * wait longer * manuall configure cypress * use latest ubuntu * try installing all * yarn install * yarn install with cypress * full flow * run again for consistency * initial tests for trends * handle exception * separate e2e docker-compose * run on pr * trends-testing foundation * run test * don't pass everything * handle uncaught exceptions * fix dashboard tests * change email domain * change dataattr to data-attr and boilerplate cleanup * base url config * add script for test runner * change default postgres * test all pages * basic actions per page and create funnel * trend breakdown filter * test create action * add DAU and entity-specific filter * uncomment * run test * . * add clicks to tables * add auth * add changelog * add dashbaord click * uncomment test for single funnel * add test for pinned dashboard * fix copy paste button and add invite team link tests * use data-attr for all filtesr * fix overall filter * remove filter * disasble virtual scroll * uncomment * remove unnecessary * run again * increase timeout * remove flimsy test * run again * add cypress checklist item * force click cohorts button * add opt out capture for tests * remove some tests * run twice * . * run twice
52 lines
1.7 KiB
JavaScript
52 lines
1.7 KiB
JavaScript
describe('Funnels', () => {
|
|
beforeEach(() => {
|
|
cy.get('[data-attr=menu-item-funnels]').click()
|
|
})
|
|
|
|
it('Funnels loaded', () => {
|
|
cy.get('h1').should('contain', 'Funnels')
|
|
})
|
|
|
|
it('Click on a funnel', () => {
|
|
cy.get('[data-attr=funnel-link-0]').click()
|
|
cy.get('[data-attr=funnel-editor]').should('exist')
|
|
})
|
|
|
|
it('Go to new funnel screen', () => {
|
|
cy.get('[data-attr=create-funnel]').click()
|
|
cy.get('[data-attr=funnel-editor]').should('exist')
|
|
})
|
|
|
|
it('Add 1 action to funnel', () => {
|
|
cy.get('[data-attr=create-funnel]').click()
|
|
cy.get('[data-attr=funnel-editor]').should('exist')
|
|
|
|
cy.get('[data-attr=edit-funnel-input]').type('Test 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('Add 2 actions to funnel', () => {
|
|
cy.get('[data-attr=create-funnel]').click()
|
|
cy.get('[data-attr=funnel-editor]').should('exist')
|
|
|
|
cy.get('[data-attr=edit-funnel-input]').type('Test 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')
|
|
})
|
|
})
|