This repository has been archived on 2024-02-08. You can view files and clone it, but cannot push or open issues or pull requests.
frontend/cypress/e2e/user/logout.spec.js
renovate 0f4e6fa3f2
All checks were successful
continuous-integration/drone/push Build is passing
chore(deps): update dependency cypress to v10 (#2015)
Co-authored-by: kolaente <k@knt.li>
Reviewed-on: #2015
Co-authored-by: renovate <renovatebot@kolaente.de>
Co-committed-by: renovate <renovatebot@kolaente.de>
2022-06-08 18:18:34 +00:00

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