vikunja-frontend/cypress/e2e/user/logout.spec.ts
2022-07-04 21:50:48 +00:00

16 lines
309 B
TypeScript

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')
})
})