Add wait in cypress test for user settings
This commit is contained in:
parent
b822b3616b
commit
0ca9862ffe
1 changed files with 2 additions and 0 deletions
|
@ -22,6 +22,7 @@ describe('User Settings', () => {
|
||||||
.contains('Upload Avatar')
|
.contains('Upload Avatar')
|
||||||
.click()
|
.click()
|
||||||
|
|
||||||
|
cy.wait(1000) // Wait for the request to finish
|
||||||
cy.get('.global-notification')
|
cy.get('.global-notification')
|
||||||
.should('contain', 'Success')
|
.should('contain', 'Success')
|
||||||
})
|
})
|
||||||
|
@ -35,6 +36,7 @@ describe('User Settings', () => {
|
||||||
.contains('Save')
|
.contains('Save')
|
||||||
.click()
|
.click()
|
||||||
|
|
||||||
|
cy.wait(1000) // Wait for the request to finish
|
||||||
cy.get('.global-notification')
|
cy.get('.global-notification')
|
||||||
.should('contain', 'Success')
|
.should('contain', 'Success')
|
||||||
cy.get('.navbar .user .username')
|
cy.get('.navbar .user .username')
|
||||||
|
|
Loading…
Reference in a new issue