mahula 30080a44c2
refactor(other): cypress: simplify cucumber preprocessor imports and some linting (#8489)
* cypress: a little linting

* cypress: import badeball preprocessor globally

* cypress: reintroduce accidentally removed semicolons

* cypress: set new e2e support file in config

* Revert "cypress: import badeball preprocessor globally"

This reverts commit 55fde3de2f9c355fe25bf9b49485b6bf64ca01cf.

* Revert "cypress: set new e2e support file in config"

This reverts commit 525cb5cf3766e402dadfd17f48e5b0f6c6ba1f9b.

* cypress: change preprocessor import to correct method in step definition file

* cypress: change preprocessor import to correct method in step definition files
2025-05-04 22:00:36 +02:00

16 lines
350 B
JavaScript

import { defineStep } from '@badeball/cypress-cucumber-preprocessor'
defineStep('I log out', () => {
cy.get('.avatar-menu').then(($menu) => {
if (!$menu.is(':visible')){
cy.scrollTo('top')
cy.wait(500)
}
})
cy.get('.avatar-menu')
.click()
cy.get('.avatar-menu-popover')
.find('a[href="/logout"]')
.click()
})