eac07d3169
Co-authored-by: Dominik Pschenitschni <mail@celement.de> Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/1531 Reviewed-by: konrad <k@knt.li> Co-authored-by: Dominik Pschenitschni <dpschen@noreply.kolaente.de> Co-committed-by: Dominik Pschenitschni <dpschen@noreply.kolaente.de>
16 lines
309 B
JavaScript
16 lines
309 B
JavaScript
import '../../support/authenticateUser'
|
|
|
|
describe('Log out', () => {
|
|
it('Logs the user out', () => {
|
|
cy.visit('/')
|
|
|
|
cy.get('.navbar .user .username')
|
|
.click()
|
|
cy.get('.navbar .user .dropdown-menu .dropdown-item')
|
|
.contains('Logout')
|
|
.click()
|
|
|
|
cy.url()
|
|
.should('contain', '/login')
|
|
})
|
|
})
|