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
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

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')