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.
2020-12-10 13:52:35 +00:00
|
|
|
import '../../support/authenticateUser'
|
|
|
|
|
|
|
|
describe('Log out', () => {
|
|
|
|
it('Logs the user out', () => {
|
|
|
|
cy.visit('/')
|
|
|
|
|
|
|
|
cy.get('.navbar .user .username')
|
|
|
|
.click()
|
2022-02-13 21:57:33 +00:00
|
|
|
cy.get('.navbar .user .dropdown-menu .dropdown-item')
|
2020-12-10 13:52:35 +00:00
|
|
|
.contains('Logout')
|
|
|
|
.click()
|
|
|
|
|
|
|
|
cy.url()
|
|
|
|
.should('contain', '/login')
|
|
|
|
})
|
|
|
|
})
|