From 0ca9862ffe3afc4ffe28c73599bc0b134fdd204d Mon Sep 17 00:00:00 2001 From: kolaente Date: Thu, 10 Dec 2020 15:30:10 +0100 Subject: [PATCH] Add wait in cypress test for user settings --- cypress/integration/user/settings.spec.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cypress/integration/user/settings.spec.js b/cypress/integration/user/settings.spec.js index bcc5cd9a..95cbbb08 100644 --- a/cypress/integration/user/settings.spec.js +++ b/cypress/integration/user/settings.spec.js @@ -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')