mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-29 11:12:33 +01:00
33f2399981
* d3-sankey alters the object passed into it. we must copy the object we pass to it * save a path in a test * don't rely on being able to query the toast when testing if paths saved
24 lines
679 B
JavaScript
24 lines
679 B
JavaScript
describe('Paths', () => {
|
|
beforeEach(() => {
|
|
cy.visit('/insights/new')
|
|
cy.get('[data-attr=insight-path-tab]').click()
|
|
})
|
|
|
|
it('Paths loaded', () => {
|
|
cy.get('[data-attr=paths-viz]').should('exist')
|
|
})
|
|
|
|
it('Apply date filter', () => {
|
|
cy.get('[data-attr=date-filter]').click()
|
|
cy.contains('Last 30 days').click()
|
|
|
|
cy.get('[data-attr=paths-viz]').should('exist')
|
|
})
|
|
|
|
it('can save paths', () => {
|
|
cy.get('[data-attr="insight-edit-button"]').should('not.exist')
|
|
cy.get('[data-attr="insight-save-button"]').click()
|
|
cy.get('[data-attr="insight-edit-button"]').should('exist')
|
|
})
|
|
})
|