mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-28 09:16:49 +01:00
5cfc7ca500
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
22 lines
929 B
JavaScript
22 lines
929 B
JavaScript
// For tests related to trends please check trendsElements.js
|
|
describe('Insights', () => {
|
|
beforeEach(() => {
|
|
cy.visit('/insights')
|
|
})
|
|
|
|
it('Stickiness graph', () => {
|
|
cy.get('[id="rc-tabs-0-tab-STICKINESS"]').click()
|
|
cy.get('[data-attr=add-action-event-button]').click()
|
|
cy.get('[data-attr=trend-element-subject-1]').should('exist')
|
|
cy.get('[data-attr=trend-line-graph]').should('exist')
|
|
cy.get('[data-attr=add-breakdown-button]').should('not.exist') // Can't do breakdown on this graph
|
|
})
|
|
|
|
it('Lifecycle graph', () => {
|
|
cy.get('[id="rc-tabs-0-tab-LIFECYCLE"]').click()
|
|
cy.get('[data-attr=trend-line-graph]').should('exist')
|
|
cy.get('[data-attr=add-breakdown-button]').should('not.exist') // Can't do breakdown on this graph
|
|
cy.get('[data-attr=add-action-event-button]').should('not.exist') // Can't add multiple series
|
|
})
|
|
})
|