0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-24 00:47:50 +01:00
posthog/cypress/e2e/paths.cy.ts
2023-04-18 14:50:07 +00:00

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')
})
})