mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-28 00:46:45 +01:00
26 lines
722 B
TypeScript
26 lines
722 B
TypeScript
import { urls } from 'scenes/urls'
|
|
|
|
describe('Paths', () => {
|
|
beforeEach(() => {
|
|
cy.visit(urls.insightNew())
|
|
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.skip('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')
|
|
})
|
|
})
|