summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--changelogs/unreleased/rails5-user-status-spec.yml5
-rw-r--r--spec/features/profiles/user_edit_profile_spec.rb2
2 files changed, 7 insertions, 0 deletions
diff --git a/changelogs/unreleased/rails5-user-status-spec.yml b/changelogs/unreleased/rails5-user-status-spec.yml
new file mode 100644
index 00000000000..818d480e9fc
--- /dev/null
+++ b/changelogs/unreleased/rails5-user-status-spec.yml
@@ -0,0 +1,5 @@
+---
+title: 'Rails5: fix user edit profile clear status spec'
+merge_request: 22169
+author: Jasper Maes
+type: other
diff --git a/spec/features/profiles/user_edit_profile_spec.rb b/spec/features/profiles/user_edit_profile_spec.rb
index e168bb0fc89..5e0434c1c2c 100644
--- a/spec/features/profiles/user_edit_profile_spec.rb
+++ b/spec/features/profiles/user_edit_profile_spec.rb
@@ -129,6 +129,8 @@ describe 'User edit profile' do
click_button 'js-clear-user-status-button'
submit_settings
+ wait_for_requests
+
visit user_path(user)
expect(page).not_to have_selector '.cover-status'
end