diff options
author | Mark Fletcher <mark@gitlab.com> | 2017-02-28 22:44:57 +0530 |
---|---|---|
committer | Mark Fletcher <mark@gitlab.com> | 2017-03-02 12:33:06 +0530 |
commit | 4c3412c37586b624585732326714a605bb226ba9 (patch) | |
tree | 3a0a42c1192cc919370b05be75d297a4376e8ec1 /spec/features/profile_spec.rb | |
parent | 7733f285aca97d444382a59eda0ea3e303539c26 (diff) | |
download | gitlab-ce-4c3412c37586b624585732326714a605bb226ba9.tar.gz |
Update profiles/account view to display new username
Diffstat (limited to 'spec/features/profile_spec.rb')
-rw-r--r-- | spec/features/profile_spec.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/features/profile_spec.rb b/spec/features/profile_spec.rb index 406d7cf791c..e63feb14b7e 100644 --- a/spec/features/profile_spec.rb +++ b/spec/features/profile_spec.rb @@ -61,4 +61,18 @@ describe 'Profile account page', feature: true do expect(find('#incoming-email-token').value).not_to eq(previous_token) end end + + describe 'when I change my username' do + before do + visit profile_account_path + end + + it 'changes my username' do + fill_in 'user_username', with: 'new-username' + + click_button('Update username') + + expect(page).to have_content('new-username') + end + end end |