From 54b690bcc73c46f2ba7e66a351e627165019e89b Mon Sep 17 00:00:00 2001 From: Grzegorz Leoniec Date: Tue, 15 Jan 2019 11:09:01 +0100 Subject: [PATCH] Fixed username test on settings page by waiting for the form to be saved --- cypress/integration/common/settings.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cypress/integration/common/settings.js b/cypress/integration/common/settings.js index e58c3b21e..048f37b7a 100644 --- a/cypress/integration/common/settings.js +++ b/cypress/integration/common/settings.js @@ -16,7 +16,9 @@ const setUserName = name => { cy.get('input[id=name]') .clear() .type(name) - cy.contains('Save').click() + cy.contains('Save') + .click() + .wait(200) myName = name }