2020-05-22 18:34:48 +02:00
|
|
|
describe('Setup', () => {
|
2020-05-27 12:50:46 +02:00
|
|
|
it('Setup loaded', () => {
|
2020-05-22 18:34:48 +02:00
|
|
|
cy.get('[data-attr=menu-item-setup]').click()
|
2020-05-27 12:50:46 +02:00
|
|
|
cy.get('[data-attr=layout-content]').should('exist')
|
2020-05-22 18:34:48 +02:00
|
|
|
})
|
|
|
|
|
2020-05-27 12:50:46 +02:00
|
|
|
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-setup]').click()
|
|
|
|
cy.get('[data-attr=app-url-suggestion]').click()
|
|
|
|
cy.get('[data-attr=app-url-item]').should('contain', '/demo')
|
2020-05-22 18:34:48 +02:00
|
|
|
})
|
|
|
|
})
|