0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-24 18:07:17 +01:00
posthog/cypress/e2e/paths.cy.ts
2022-12-30 21:27:26 +01:00

26 lines
717 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('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')
})
})