2021-11-25 15:39:49 +01:00
|
|
|
import { urls } from 'scenes/urls'
|
|
|
|
|
2020-05-22 18:34:48 +02:00
|
|
|
describe('Paths', () => {
|
|
|
|
beforeEach(() => {
|
2021-11-25 15:39:49 +01:00
|
|
|
cy.visit(urls.insightNew())
|
2020-07-29 17:51:49 +02:00
|
|
|
cy.get('[data-attr=insight-path-tab]').click()
|
2020-05-22 18:34:48 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
it('Paths loaded', () => {
|
2020-07-29 17:51:49 +02:00
|
|
|
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()
|
|
|
|
|
2020-05-22 18:34:48 +02:00
|
|
|
cy.get('[data-attr=paths-viz]').should('exist')
|
|
|
|
})
|
2021-11-10 17:58:39 +01:00
|
|
|
|
2023-04-18 16:50:07 +02:00
|
|
|
it.skip('can save paths', () => {
|
2021-11-10 17:58:39 +01:00
|
|
|
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')
|
|
|
|
})
|
2020-05-22 18:34:48 +02:00
|
|
|
})
|