mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-24 18:07:17 +01:00
25 lines
816 B
TypeScript
25 lines
816 B
TypeScript
import { urls } from 'scenes/urls'
|
|
import { randomString } from '../support/random'
|
|
import { insight } from '../productAnalytics'
|
|
import { decideResponse } from '../fixtures/api/decide'
|
|
|
|
// For tests related to trends please check trendsElements.js
|
|
describe('Insights (with data exploration on)', () => {
|
|
beforeEach(() => {
|
|
cy.intercept('https://app.posthog.com/decide/*', (req) =>
|
|
req.reply(
|
|
decideResponse({
|
|
'data-exploration-query-tab': true,
|
|
'data-exploration-insights': true,
|
|
})
|
|
)
|
|
)
|
|
cy.visit(urls.insightNew())
|
|
})
|
|
|
|
it('shows the edit as json button', () => {
|
|
const insightName = randomString('insight-name-')
|
|
insight.create(insightName, 'TRENDS', true)
|
|
})
|
|
})
|