summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorFatih Acet <acetfatih@gmail.com>2018-02-07 21:47:09 +0000
committerFatih Acet <acetfatih@gmail.com>2018-02-07 21:47:09 +0000
commit4c3dd91f18a0d7fb4aafe807b37520d07563af6a (patch)
tree6e579b848c9a86fa7f1556a045bf48651f63efc5 /spec
parent463957f5ccaf15c8675ba88facdf75f3c9a0fa4e (diff)
parent3d4c40a014e045d68ac80b6ebe2a4e498805a261 (diff)
downloadgitlab-ce-4c3dd91f18a0d7fb4aafe807b37520d07563af6a.tar.gz
Merge branch 'axios-profile' into 'master'
Replace $.ajax in profile.js with axios See merge request gitlab-org/gitlab-ce!16895
Diffstat (limited to 'spec')
-rw-r--r--spec/features/profiles/user_visits_profile_spec.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/features/profiles/user_visits_profile_spec.rb b/spec/features/profiles/user_visits_profile_spec.rb
index 6601d3039ed..a5d80439143 100644
--- a/spec/features/profiles/user_visits_profile_spec.rb
+++ b/spec/features/profiles/user_visits_profile_spec.rb
@@ -12,4 +12,13 @@ describe 'User visits their profile' do
it 'shows correct menu item' do
expect(page).to have_active_navigation('Profile')
end
+
+ describe 'profile settings', :js do
+ it 'saves updates' do
+ fill_in 'user_bio', with: 'bio'
+ click_button 'Update profile settings'
+
+ expect(page).to have_content('Profile was successfully updated')
+ end
+ end
end