Add wait in cypress test for user settings

This commit is contained in:
kolaente 2020-12-10 15:30:10 +01:00
parent b822b3616b
commit 0ca9862ffe
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 2 additions and 0 deletions

View File

@ -22,6 +22,7 @@ describe('User Settings', () => {
.contains('Upload Avatar')
.click()
cy.wait(1000) // Wait for the request to finish
cy.get('.global-notification')
.should('contain', 'Success')
})
@ -35,6 +36,7 @@ describe('User Settings', () => {
.contains('Save')
.click()
cy.wait(1000) // Wait for the request to finish
cy.get('.global-notification')
.should('contain', 'Success')
cy.get('.navbar .user .username')