Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClement Ho <clemmakesapps@gmail.com>2018-02-08 00:45:03 +0300
committerFatih Acet <acetfatih@gmail.com>2018-02-08 00:45:03 +0300
commit3d4c40a014e045d68ac80b6ebe2a4e498805a261 (patch)
tree1439427392bf2a2ff21cdd3a87445f634f84b697 /spec/features/profiles
parent071b0ef35ce8e97cbdceb379e3e70a1722badca1 (diff)
Replace $.ajax in profile.js with axios
Diffstat (limited to 'spec/features/profiles')
-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