-
diff --git a/tests/behat/features/profile.feature b/tests/behat/features/profile.feature
index e0ae5b444c..3143f409de 100644
--- a/tests/behat/features/profile.feature
+++ b/tests/behat/features/profile.feature
@@ -6,16 +6,17 @@ Feature: Profile page
Scenario: Change user first name with Andrew then restore to Andrea
Given I am on "/account/home"
- Then I should see "Profile"
- Then I follow "Edit profile"
- Then I fill in the following:
+ And I press "Edit profile"
+ And I wait for the page to be loaded
+ And I fill in the following:
| profile_firstname | Andrew |
And I press "update_profile"
- And wait for the page to be loaded
- And I should see "Andrew Doe"
- Then I follow "Edit profile"
- Then I fill in the following:
+ And I wait for the page to be loaded
+ Then I should see "Andrew Doe"
+ And I press "Edit profile"
+ And I wait for the page to be loaded
+ And I fill in the following:
| profile_firstname | Andrea |
And I press "update_profile"
And wait for the page to be loaded
- And I should see "Andrea Doe"
+ Then I should see "Andrea Doe"