mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-24 18:07:17 +01:00
15d04d9e56
* Unify clickhouse and pg demo data creation * Adapt yakkos demo data generation to normal demo * Split demo.py into subfolder * Add original, web data import Note that elements are not added because they can't be added automagically :(. * Improve wording * dont generate dashboards * try get tests passing * fix types * Get cypress tests green
26 lines
835 B
JavaScript
26 lines
835 B
JavaScript
describe('Setup', () => {
|
|
it('Setup loaded', () => {
|
|
cy.get('[data-attr=menu-item-project]').click()
|
|
cy.get('[data-attr=layout-content]').should('exist')
|
|
})
|
|
|
|
it('See suggestion and save', () => {
|
|
cy.getCookie('csrftoken').then((csrftoken) => {
|
|
cy.request({
|
|
url: '/api/user/',
|
|
body: { team: { app_urls: [] } },
|
|
method: 'PATCH',
|
|
headers: {
|
|
'X-CSRFToken': csrftoken.value,
|
|
},
|
|
})
|
|
})
|
|
cy.reload(true)
|
|
cy.get('[data-attr=menu-item-project]').click()
|
|
cy.get('[data-attr=app-url-suggestion]').first().click()
|
|
cy.get('[data-attr=app-url-item]').contains(/\hogflix/g)
|
|
|
|
cy.title().should('equal', 'Project Settings • PostHog')
|
|
})
|
|
})
|