mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-28 09:16:49 +01:00
d7fe71f083
* working table * add modal * continue adding to modal * added function to create global annotation * format * test commit * add precommit * add update function * crud working * add type * fix tests * add next * add prompt * tests
24 lines
766 B
JavaScript
24 lines
766 B
JavaScript
describe('Setup', () => {
|
|
it('Setup loaded', () => {
|
|
cy.get('[data-attr=menu-item-settings]').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-settings]').click()
|
|
cy.get('[data-attr=app-url-suggestion]').click()
|
|
cy.get('[data-attr=app-url-item]').should('contain', '/demo')
|
|
})
|
|
})
|