mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-10-19 05:40:16 -04:00
16 lines
349 B
TypeScript
16 lines
349 B
TypeScript
|
// eslint-disable-next-line @typescript-eslint/no-namespace
|
||
|
declare namespace Cypress {
|
||
|
interface Chainable {
|
||
|
/**
|
||
|
* Custom command to log the user out.
|
||
|
* @example cy.logout()
|
||
|
*/
|
||
|
logout (): Chainable<Window>
|
||
|
}
|
||
|
}
|
||
|
|
||
|
Cypress.Commands.add('logout', () => {
|
||
|
cy.get('#dropdown-user').click()
|
||
|
cy.get('.fa-sign-out').click()
|
||
|
})
|