mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
e2e: add waiting for network to be idle to logout step
This commit is contained in:
parent
ef727f0bc7
commit
1de56a6bcf
@ -1,4 +1,5 @@
|
||||
import { defineStep } from '@badeball/cypress-cucumber-preprocessor'
|
||||
import 'cypress-network-idle'
|
||||
|
||||
defineStep('I log out', () => {
|
||||
cy.get('.avatar-menu').then(($menu) => {
|
||||
@ -12,4 +13,6 @@ defineStep('I log out', () => {
|
||||
cy.get('.avatar-menu-popover')
|
||||
.find('a[href="/logout"]')
|
||||
.click()
|
||||
cy.reload(true)
|
||||
cy.waitForNetworkIdle(2000)
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user